diff options
author | 2015-02-26 13:05:49 -0800 | |
---|---|---|
committer | 2015-03-02 12:03:57 -0800 | |
commit | 854edce6ddd7ed2d64406b66f746480741d61b15 (patch) | |
tree | a1e08069786409b2c562340aa1fafb44de617013 /java/res/xml/prefs_screen_accounts.xml | |
parent | c83352d527bbae430f52b6494ad3e391d950520a (diff) | |
download | latinime-854edce6ddd7ed2d64406b66f746480741d61b15.tar.gz latinime-854edce6ddd7ed2d64406b66f746480741d61b15.tar.xz latinime-854edce6ddd7ed2d64406b66f746480741d61b15.zip |
Turn off cloud sync if we have managed profiles
UserManager#getUserProfiles > 1 implies managed
profile.
Workflow:
- Disable sync prefs
- Execute an async task to check for managed profile; if
managed profile is found, remove the sync prefs. If not, enable
the preference;
- Move the logging pref from Advanced to Account & Privacy.
Bug:19230544
Change-Id: I4dbd1fe8433b3263ccc74c35dc0ee0bb371122b3
Diffstat (limited to 'java/res/xml/prefs_screen_accounts.xml')
-rw-r--r-- | java/res/xml/prefs_screen_accounts.xml | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/java/res/xml/prefs_screen_accounts.xml b/java/res/xml/prefs_screen_accounts.xml index e4baf7984..f2ade91e1 100644 --- a/java/res/xml/prefs_screen_accounts.xml +++ b/java/res/xml/prefs_screen_accounts.xml @@ -48,4 +48,11 @@ android:title="@string/clear_sync_data_title" android:summary="@string/clear_sync_data_summary" android:dependency="pref_enable_cloud_sync" /> + + <!-- Title will be set programmatically to embed application name --> + <CheckBoxPreference + android:key="pref_enable_metrics_logging" + android:summary="@string/enable_metrics_logging_summary" + android:defaultValue="true" + android:persistent="true" /> </PreferenceScreen> |