Fix a couple of monkey bugs.

Bug: 2467286
Bug: 2436861
This commit is contained in:
Amith Yamasani
2010-02-26 12:58:26 -08:00
parent 1ab39e0f09
commit 88ea1164af

View File

@@ -123,13 +123,15 @@ public class RingerVolumePreference extends VolumePreference implements
protected void onSampleStarting(SeekBarVolumizer volumizer) {
super.onSampleStarting(volumizer);
for (SeekBarVolumizer vol : mSeekBarVolumizer) {
if (vol != volumizer) vol.stopSample();
if (vol != null && vol != volumizer) vol.stopSample();
}
}
private void setNotificationVolumeVisibility(boolean visible) {
if (mSeekBarVolumizer[0] != null) {
mSeekBarVolumizer[0].getSeekBar().setVisibility(
visible ? View.VISIBLE : View.GONE);
}
mNotificationVolumeTitle.setVisibility(visible ? View.VISIBLE : View.GONE);
}