summaryrefslogtreecommitdiffstats
path: root/packages/SystemUI/src/com/android/systemui/settings
diff options
context:
space:
mode:
authorAmith Yamasani <yamasani@google.com>2013-06-10 13:43:10 -0700
committerAmith Yamasani <yamasani@google.com>2013-06-10 13:45:10 -0700
commit3df2172215e2e0c5cd0c01eeb0d57191623b460e (patch)
tree5c49a839502db42873de8af1f092cf215d6114fd /packages/SystemUI/src/com/android/systemui/settings
parentf24e16aaf9963436413119c7363bdb9e50c8ba19 (diff)
downloadframeworks_base-3df2172215e2e0c5cd0c01eeb0d57191623b460e.zip
frameworks_base-3df2172215e2e0c5cd0c01eeb0d57191623b460e.tar.gz
frameworks_base-3df2172215e2e0c5cd0c01eeb0d57191623b460e.tar.bz2
Hide "Take bugreport" for secondary users
In QuickSettings and GlobalActions. Bug: 9304471 Change-Id: Ia3118b3258b1f6983c47e96168b7b875b6fc798b
Diffstat (limited to 'packages/SystemUI/src/com/android/systemui/settings')
-rw-r--r--packages/SystemUI/src/com/android/systemui/settings/CurrentUserTracker.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/settings/CurrentUserTracker.java b/packages/SystemUI/src/com/android/systemui/settings/CurrentUserTracker.java
index 122f81e..036bd4f 100644
--- a/packages/SystemUI/src/com/android/systemui/settings/CurrentUserTracker.java
+++ b/packages/SystemUI/src/com/android/systemui/settings/CurrentUserTracker.java
@@ -21,6 +21,7 @@ import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
+import android.os.UserHandle;
public abstract class CurrentUserTracker extends BroadcastReceiver {
@@ -54,4 +55,8 @@ public abstract class CurrentUserTracker extends BroadcastReceiver {
}
public abstract void onUserSwitched(int newUserId);
+
+ public boolean isCurrentUserOwner() {
+ return mCurrentUserId == UserHandle.USER_OWNER;
+ }
}