зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1401773 - Revert checkboxes->switches changeover for SyncPrefs r=nalexander
MozReview-Commit-ID: 2RwcgomT5UG --HG-- extra : rebase_source : 92e271fcd2adc328ff9ecdfeb976b679afee0b7e
This commit is contained in:
Родитель
57ae48126f
Коммит
f2388d9cda
|
@ -13,13 +13,13 @@ import android.content.IntentFilter;
|
||||||
import android.content.SharedPreferences;
|
import android.content.SharedPreferences;
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
import android.os.Handler;
|
import android.os.Handler;
|
||||||
|
import android.preference.CheckBoxPreference;
|
||||||
import android.preference.EditTextPreference;
|
import android.preference.EditTextPreference;
|
||||||
import android.preference.Preference;
|
import android.preference.Preference;
|
||||||
import android.preference.Preference.OnPreferenceChangeListener;
|
import android.preference.Preference.OnPreferenceChangeListener;
|
||||||
import android.preference.Preference.OnPreferenceClickListener;
|
import android.preference.Preference.OnPreferenceClickListener;
|
||||||
import android.preference.PreferenceCategory;
|
import android.preference.PreferenceCategory;
|
||||||
import android.preference.PreferenceScreen;
|
import android.preference.PreferenceScreen;
|
||||||
import android.preference.SwitchPreference;
|
|
||||||
import android.support.v4.content.LocalBroadcastManager;
|
import android.support.v4.content.LocalBroadcastManager;
|
||||||
import android.text.TextUtils;
|
import android.text.TextUtils;
|
||||||
import android.text.format.DateUtils;
|
import android.text.format.DateUtils;
|
||||||
|
@ -99,10 +99,10 @@ public class FxAccountStatusFragment
|
||||||
protected Preference needsMasterSyncAutomaticallyEnabledPreference;
|
protected Preference needsMasterSyncAutomaticallyEnabledPreference;
|
||||||
protected Preference needsFinishMigratingPreference;
|
protected Preference needsFinishMigratingPreference;
|
||||||
|
|
||||||
protected SwitchPreference bookmarksPreference;
|
protected CheckBoxPreference bookmarksPreference;
|
||||||
protected SwitchPreference historyPreference;
|
protected CheckBoxPreference historyPreference;
|
||||||
protected SwitchPreference tabsPreference;
|
protected CheckBoxPreference tabsPreference;
|
||||||
protected SwitchPreference passwordsPreference;
|
protected CheckBoxPreference passwordsPreference;
|
||||||
|
|
||||||
protected EditTextPreference deviceNamePreference;
|
protected EditTextPreference deviceNamePreference;
|
||||||
protected Preference syncServerPreference;
|
protected Preference syncServerPreference;
|
||||||
|
@ -167,10 +167,10 @@ public class FxAccountStatusFragment
|
||||||
needsMasterSyncAutomaticallyEnabledPreference = ensureFindPreference("needs_master_sync_automatically_enabled");
|
needsMasterSyncAutomaticallyEnabledPreference = ensureFindPreference("needs_master_sync_automatically_enabled");
|
||||||
needsFinishMigratingPreference = ensureFindPreference("needs_finish_migrating");
|
needsFinishMigratingPreference = ensureFindPreference("needs_finish_migrating");
|
||||||
|
|
||||||
bookmarksPreference = (SwitchPreference) ensureFindPreference("bookmarks");
|
bookmarksPreference = (CheckBoxPreference) ensureFindPreference("bookmarks");
|
||||||
historyPreference = (SwitchPreference) ensureFindPreference("history");
|
historyPreference = (CheckBoxPreference) ensureFindPreference("history");
|
||||||
tabsPreference = (SwitchPreference) ensureFindPreference("tabs");
|
tabsPreference = (CheckBoxPreference) ensureFindPreference("tabs");
|
||||||
passwordsPreference = (SwitchPreference) ensureFindPreference("passwords");
|
passwordsPreference = (CheckBoxPreference) ensureFindPreference("passwords");
|
||||||
|
|
||||||
profilePreference.setOnPreferenceClickListener(this);
|
profilePreference.setOnPreferenceClickListener(this);
|
||||||
removeAccountPreference.setOnPreferenceClickListener(this);
|
removeAccountPreference.setOnPreferenceClickListener(this);
|
||||||
|
|
|
@ -61,19 +61,19 @@
|
||||||
<PreferenceCategory
|
<PreferenceCategory
|
||||||
android:title="@string/fxaccount_status_choose_what">
|
android:title="@string/fxaccount_status_choose_what">
|
||||||
|
|
||||||
<SwitchPreference
|
<CheckBoxPreference
|
||||||
android:key="bookmarks"
|
android:key="bookmarks"
|
||||||
android:persistent="false"
|
android:persistent="false"
|
||||||
android:title="@string/fxaccount_status_bookmarks" />
|
android:title="@string/fxaccount_status_bookmarks" />
|
||||||
<SwitchPreference
|
<CheckBoxPreference
|
||||||
android:key="history"
|
android:key="history"
|
||||||
android:persistent="false"
|
android:persistent="false"
|
||||||
android:title="@string/fxaccount_status_history" />
|
android:title="@string/fxaccount_status_history" />
|
||||||
<SwitchPreference
|
<CheckBoxPreference
|
||||||
android:key="tabs"
|
android:key="tabs"
|
||||||
android:persistent="false"
|
android:persistent="false"
|
||||||
android:title="@string/fxaccount_status_tabs" />
|
android:title="@string/fxaccount_status_tabs" />
|
||||||
<SwitchPreference
|
<CheckBoxPreference
|
||||||
android:key="passwords"
|
android:key="passwords"
|
||||||
android:persistent="false"
|
android:persistent="false"
|
||||||
android:title="@string/fxaccount_status_passwords" />
|
android:title="@string/fxaccount_status_passwords" />
|
||||||
|
|
Загрузка…
Ссылка в новой задаче