OSDN Git Service

Also update flip camera settings for managed profile.
authorDoris Ling <dling@google.com>
Mon, 5 Jun 2017 21:48:44 +0000 (14:48 -0700)
committerDoris Ling <dling@google.com>
Mon, 5 Jun 2017 23:27:12 +0000 (16:27 -0700)
commitfed8ea8bce5f8de6a8a9b005e82538fd44807fe5
tree1f1242f0760ab819f3ab2c52e356d1800aceb1eb
parent685041559aa840196090039bf040dae9cca2062b
Also update flip camera settings for managed profile.

When user update the setting for flip camera, check if there is managed
profile for the user, and update the setting for the managed user id as
well, so that the work profile camera app can read the correct setting
value.

Change-Id: I757041289329870311bc8473b19fd49ecdd0fadb
Fix: 62078588
Test: make RunSettingsRoboTests
src/com/android/settings/gestures/DoubleTwistPreferenceController.java
tests/robotests/src/com/android/settings/gestures/DoubleTwistPreferenceControllerTest.java
tests/robotests/src/com/android/settings/testutils/shadow/ShadowSecureSettings.java