OSDN Git Service

Refactor sound setting -> work profile initialization logic.
authorFan Zhang <zhfan@google.com>
Fri, 10 Mar 2017 00:27:22 +0000 (16:27 -0800)
committerFan Zhang <zhfan@google.com>
Fri, 10 Mar 2017 01:49:54 +0000 (17:49 -0800)
commit3515cc8217f91ee7f6bf91a61131fb1402c74ff9
treede141f2502fe77e3dbb6c2ee1687209bbd237991
parent5e2545c3e6d2039df50d850eda1ec447971d64f7
Refactor sound setting -> work profile initialization logic.

- Some formatting change
- Merge work profile sound settings into main sound setting xml file, and
  use existing WorkCategory to host it. This category automatically hides
  everything within if user is not using work profile.
- Remove logic for manually populating work profile sound setting into
  the UI, thus removing the animation glitch when expanding advanced
  button.

Change-Id: I90459e5cd1d3d20a97ea3629e143ebf13dbd0f76
Fix: 35959624
Test: make RunSettingsRoboTests
res/xml/ia_sound_settings.xml
res/xml/sound_work_settings.xml [deleted file]
src/com/android/settings/notification/WorkSoundPreferenceController.java
tests/robotests/src/com/android/settings/notification/WorkSoundPreferenceControllerTest.java