diff options
author | Dianne Hackborn <hackbod@google.com> | 2012-08-16 16:42:52 -0700 |
---|---|---|
committer | Dianne Hackborn <hackbod@google.com> | 2012-08-17 10:36:08 -0700 |
commit | 79af1dd54c16cde063152922b42c96d72ae9eca8 (patch) | |
tree | 142abf0037d20841712e88d65febcbbd92dd5561 /tools/layoutlib | |
parent | f1b995f9d049cb5c7225b3b17f09369237a83ca2 (diff) | |
download | frameworks_base-79af1dd54c16cde063152922b42c96d72ae9eca8.zip frameworks_base-79af1dd54c16cde063152922b42c96d72ae9eca8.tar.gz frameworks_base-79af1dd54c16cde063152922b42c96d72ae9eca8.tar.bz2 |
Switch public APIs to use new UserHandle class for identifying users.
Gets rid of "yet another integer" confusion.
Change-Id: Id07ea7307aea7c62f0087c6663a1f1c08e2e5dee
Diffstat (limited to 'tools/layoutlib')
-rw-r--r-- | tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/BridgeContext.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/BridgeContext.java b/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/BridgeContext.java index 292e4fc..943357a 100644 --- a/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/BridgeContext.java +++ b/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/BridgeContext.java @@ -61,6 +61,7 @@ import android.os.Bundle; import android.os.Handler; import android.os.Looper; import android.os.PowerManager; +import android.os.UserHandle; import android.util.AttributeSet; import android.util.DisplayMetrics; import android.util.TypedValue; @@ -1193,12 +1194,12 @@ public final class BridgeContext extends Context { } @Override - public void sendBroadcastToUser(Intent intent, int userId) { + public void sendBroadcastAsUser(Intent intent, UserHandle user) { // pass } @Override - public void sendOrderedBroadcastToUser(Intent intent, int userId, + public void sendOrderedBroadcastAsUser(Intent intent, UserHandle user, BroadcastReceiver resultReceiver, Handler scheduler, int initialCode, String initialData, Bundle initialExtras) { // pass |