Update SoundSettings to extend DashboardFragment.

- initial round of refactoring SoundSettings to use DashboardFragment.
- add controller for Cast, Do not disturb, Alarm volume, Media volume,
  Ring volume and Notification volume.

Bug: 32276590
Test: make RunSettingsRoboTests
Change-Id: I5c02a344bff5117bfce93d7ccac650fccc82d2b0
This commit is contained in:
Doris Ling
2016-11-30 17:33:50 -08:00
parent 7aad8a97a4
commit 1b3ec04748
19 changed files with 1448 additions and 193 deletions

View File

@@ -146,7 +146,9 @@ public class VolumeSeekBarPreference extends SeekBarPreference {
@Override
public void onProgressChanged(SeekBar seekBar, int progress, boolean fromTouch) {
super.onProgressChanged(seekBar, progress, fromTouch);
mCallback.onStreamValueChanged(mStream, progress);
if (mCallback != null) {
mCallback.onStreamValueChanged(mStream, progress);
}
}
private void updateIconView() {