Merge "Volumes panel shouldn't depend on Silent mode setting."

This commit is contained in:
Amith Yamasani
2011-08-10 14:21:03 -07:00
committed by Android (Google) Code Review
2 changed files with 7 additions and 5 deletions

View File

@@ -21,7 +21,6 @@
<com.android.settings.RingerVolumePreference
android:key="ring_volume"
android:dependency="silent"
android:title="@string/all_volume_title"
android:dialogTitle="@string/all_volume_title"
android:persistent="false"
@@ -37,7 +36,7 @@
android:key="silent"
android:title="@string/silent_mode_title"
android:persistent="false"
android:disableDependentsState="true" />
/>
<Preference
android:key="musicfx"

View File

@@ -182,8 +182,8 @@ public class RingerVolumePreference extends VolumePreference implements OnClickL
public void onReceive(Context context, Intent intent) {
final String action = intent.getAction();
if (AudioManager.RINGER_MODE_CHANGED_ACTION.equals(action)) {
mHandler.sendMessage(mHandler.obtainMessage(MSG_RINGER_MODE_CHANGED,
intent.getIntExtra(AudioManager.EXTRA_RINGER_MODE, -1), 0));
mHandler.sendMessage(mHandler.obtainMessage(MSG_RINGER_MODE_CHANGED, intent
.getIntExtra(AudioManager.EXTRA_RINGER_MODE, -1), 0));
}
}
};
@@ -222,7 +222,10 @@ public class RingerVolumePreference extends VolumePreference implements OnClickL
@Override
public void onActivityStop() {
super.onActivityStop();
cleanup();
for (SeekBarVolumizer vol : mSeekBarVolumizer) {
if (vol != null) vol.stopSample();
}
}
@Override