diff options
author | Ethan Chen <intervigil@gmail.com> | 2015-10-26 20:01:14 -0700 |
---|---|---|
committer | Ethan Chen <intervigil@gmail.com> | 2015-10-26 20:30:28 -0700 |
commit | 61de772b661a7d11b637c491d0d5cb6a05e58bb4 (patch) | |
tree | 2e2e94b7a22d13d702b38152660255940b7101bf /src/com | |
parent | 75240836faa15cfec22f427561e7479a5a8d9485 (diff) | |
download | packages_apps_Settings-61de772b661a7d11b637c491d0d5cb6a05e58bb4.zip packages_apps_Settings-61de772b661a7d11b637c491d0d5cb6a05e58bb4.tar.gz packages_apps_Settings-61de772b661a7d11b637c491d0d5cb6a05e58bb4.tar.bz2 |
Settings: Fix compilation
Change-Id: I25e3350408a7e70400b0ed74ec30882b3f310dec
Diffstat (limited to 'src/com')
-rw-r--r-- | src/com/android/settings/DevelopmentSettings.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/com/android/settings/DevelopmentSettings.java b/src/com/android/settings/DevelopmentSettings.java index 8181d38..0c55cb3 100644 --- a/src/com/android/settings/DevelopmentSettings.java +++ b/src/com/android/settings/DevelopmentSettings.java @@ -206,8 +206,8 @@ public class DevelopmentSettings extends SettingsPreferenceFragment private boolean mDontPokeProperties; private SwitchPreference mEnableAdb; - private CheckBoxPreference mAdbNotify; - private CheckBoxPreference mAdbOverNetwork; + private SwitchPreference mAdbNotify; + private SwitchPreference mAdbOverNetwork; private Preference mClearAdbKeys; private SwitchPreference mEnableTerminal; private Preference mBugreport; @@ -315,9 +315,9 @@ public class DevelopmentSettings extends SettingsPreferenceFragment findPreference(DEBUG_DEBUGGING_CATEGORY_KEY); mEnableAdb = findAndInitSwitchPref(ENABLE_ADB); - mAdbNotify = findAndInitCheckboxPref(ADB_NOTIFY); + mAdbNotify = findAndInitSwitchPref(ADB_NOTIFY); mAllPrefs.add(mAdbNotify); - mAdbOverNetwork = findAndInitCheckboxPref(ADB_TCPIP); + mAdbOverNetwork = findAndInitSwitchPref(ADB_TCPIP); mClearAdbKeys = findPreference(CLEAR_ADB_KEYS); if (!SystemProperties.getBoolean("ro.adb.secure", false)) { @@ -658,7 +658,7 @@ public class DevelopmentSettings extends SettingsPreferenceFragment Settings.Secure.ADB_PORT, 0); boolean enabled = port > 0; - updateCheckBox(mAdbOverNetwork, enabled); + updateSwitchPreference(mAdbOverNetwork, enabled); WifiInfo wifiInfo = null; |