Skip to content

Commit a458868

Browse files
Samuel AstebergJohan Redestig
authored andcommitted
VolumePreference.onActivityStop only stops playback
In VolumePreference.onActivityStop, the cleanup has been replaced with only stopping ringtone playback for the seekbar. This will avoid problems when switching between applications that previously lead to inconsistencies in the ring volume dialog. Change-Id: Ia751fe0893610c4f5650eb07705481400642a84e
1 parent 8226140 commit a458868

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

core/java/android/preference/VolumePreference.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,9 @@ protected void onDialogClosed(boolean positiveResult) {
109109
}
110110

111111
public void onActivityStop() {
112-
cleanup();
112+
if (mSeekBarVolumizer != null) {
113+
mSeekBarVolumizer.stopSample();
114+
}
113115
}
114116

115117
/**

0 commit comments

Comments
 (0)