Skip to content

Commit

Permalink
SystemUI: Move ADB_ENABLED to "Global"
Browse files Browse the repository at this point in the history
ADB_ENABLED is in Global since a while, correct occurences
-> Reduces logspam

Change-Id: I6fed6d63827179fe134e3ba150a20a3ba0a5202b
  • Loading branch information
BadDaemon authored and STELIX committed Apr 20, 2016
1 parent f6185a5 commit d0a0c45
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -91,7 +91,7 @@ public int getMetricsCategory() {
}

private boolean isAdbEnabled() {
return Settings.Secure.getInt(mContext.getContentResolver(),
return Settings.Global.getInt(mContext.getContentResolver(),
Settings.Global.ADB_ENABLED, 0) > 0;
}

Expand Down Expand Up @@ -120,7 +120,7 @@ public void setListening(boolean listening) {
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);
Expand Down

0 comments on commit d0a0c45

Please sign in to comment.