diff options
author | Michael W <baddaemon87@gmail.com> | 2016-04-15 11:05:32 +0200 |
---|---|---|
committer | Gerrit Code Review <gerrit@cyanogenmod.org> | 2016-04-18 01:08:13 -0700 |
commit | d75b707d3960a626411fed1c24b65b8e3d5ca512 (patch) | |
tree | a071f1720dc7e8fc2e2103c5eb087ebd5aafa5ec | |
parent | a88d902d7bc88f8b885d06468a8fa5e1498f3b23 (diff) | |
download | frameworks_base-d75b707d3960a626411fed1c24b65b8e3d5ca512.zip frameworks_base-d75b707d3960a626411fed1c24b65b8e3d5ca512.tar.gz frameworks_base-d75b707d3960a626411fed1c24b65b8e3d5ca512.tar.bz2 |
SystemUI: Move ADB_ENABLED to "Global"
ADB_ENABLED is in Global since a while, correct occurences
-> Reduces logspam
Change-Id: I6fed6d63827179fe134e3ba150a20a3ba0a5202b
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/qs/tiles/AdbOverNetworkTile.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/qs/tiles/AdbOverNetworkTile.java b/packages/SystemUI/src/com/android/systemui/qs/tiles/AdbOverNetworkTile.java index 283d617..b970a4c 100644 --- a/packages/SystemUI/src/com/android/systemui/qs/tiles/AdbOverNetworkTile.java +++ b/packages/SystemUI/src/com/android/systemui/qs/tiles/AdbOverNetworkTile.java @@ -91,7 +91,7 @@ public class AdbOverNetworkTile extends QSTile<QSTile.BooleanState> { } private boolean isAdbEnabled() { - return Settings.Secure.getInt(mContext.getContentResolver(), + return Settings.Global.getInt(mContext.getContentResolver(), Settings.Global.ADB_ENABLED, 0) > 0; } @@ -120,7 +120,7 @@ public class AdbOverNetworkTile extends QSTile<QSTile.BooleanState> { CMSettings.Secure.getUriFor(CMSettings.Secure.ADB_PORT), false, mObserver); mContext.getContentResolver().registerContentObserver( - Settings.Secure.getUriFor(Settings.Global.ADB_ENABLED), + Settings.Global.getUriFor(Settings.Global.ADB_ENABLED), false, mObserver); } else { mContext.getContentResolver().unregisterContentObserver(mObserver); |