Volumes panel shouldn't depend on Silent mode setting.

Otherwise it wont be possible to adjust alarm and music volumes.
Also fixes an inconsistent state when screen is turned off and on.

Bug: 5128528
Bug: 5128850

Change-Id: I3bfae44956de291b086905b9f43ca4ff5c7b9bbf
This commit is contained in:
Amith Yamasani
2011-08-09 10:52:38 -07:00
parent ce477dbd83
commit 7f0d760ea5
2 changed files with 7 additions and 5 deletions

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