aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/settings/AdvancedSettingsFragment.java
diff options
context:
space:
mode:
authorJatin Matani <jatinm@google.com>2015-02-26 13:05:49 -0800
committerJatin Matani <jatinm@google.com>2015-03-02 12:03:57 -0800
commit854edce6ddd7ed2d64406b66f746480741d61b15 (patch)
treea1e08069786409b2c562340aa1fafb44de617013 /java/src/com/android/inputmethod/latin/settings/AdvancedSettingsFragment.java
parentc83352d527bbae430f52b6494ad3e391d950520a (diff)
downloadlatinime-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/src/com/android/inputmethod/latin/settings/AdvancedSettingsFragment.java')
-rw-r--r--java/src/com/android/inputmethod/latin/settings/AdvancedSettingsFragment.java16
1 files changed, 0 insertions, 16 deletions
diff --git a/java/src/com/android/inputmethod/latin/settings/AdvancedSettingsFragment.java b/java/src/com/android/inputmethod/latin/settings/AdvancedSettingsFragment.java
index 9366726e2..f2e1aed4c 100644
--- a/java/src/com/android/inputmethod/latin/settings/AdvancedSettingsFragment.java
+++ b/java/src/com/android/inputmethod/latin/settings/AdvancedSettingsFragment.java
@@ -87,22 +87,6 @@ public final class AdvancedSettingsFragment extends SubScreenFragment {
Settings.readKeyPreviewPopupEnabled(prefs, res));
}
- // If metrics logging isn't supported, or account sign in is enabled
- // don't show the logging preference.
- // TODO: Eventually when we enable account sign in by default,
- // we'll remove logging preference from here.
- if (ProductionFlags.IS_METRICS_LOGGING_SUPPORTED) {
- final Preference enableMetricsLogging =
- findPreference(Settings.PREF_ENABLE_METRICS_LOGGING);
- if (enableMetricsLogging != null) {
- final String enableMetricsLoggingTitle = res.getString(
- R.string.enable_metrics_logging, getApplicationName());
- enableMetricsLogging.setTitle(enableMetricsLoggingTitle);
- }
- } else {
- removePreference(Settings.PREF_ENABLE_METRICS_LOGGING);
- }
-
setupKeypressVibrationDurationSettings();
setupKeypressSoundVolumeSettings();
setupKeyLongpressTimeoutSettings();