diff options
author | Joe Onorato <joeo@android.com> | 2009-12-02 23:34:17 -0800 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2009-12-02 23:34:17 -0800 |
commit | 4ceb0f3855a6cd2b43f5dad0fd37eba77340e3a3 (patch) | |
tree | 15095ce95c96430e395f9feb649212b1f0cd603c /services/java | |
parent | 5ed608d30522524240966f4ffa9ddd7c9820051a (diff) | |
parent | 19a4157ce40f4ab77b60445b8e73069c5877bb8a (diff) | |
download | frameworks_base-4ceb0f3855a6cd2b43f5dad0fd37eba77340e3a3.zip frameworks_base-4ceb0f3855a6cd2b43f5dad0fd37eba77340e3a3.tar.gz frameworks_base-4ceb0f3855a6cd2b43f5dad0fd37eba77340e3a3.tar.bz2 |
am 19a4157c: Make the notification panel send the position as well.
Merge commit '19a4157ce40f4ab77b60445b8e73069c5877bb8a' into eclair-plus-aosp
* commit '19a4157ce40f4ab77b60445b8e73069c5877bb8a':
Make the notification panel send the position as well.
Diffstat (limited to 'services/java')
-rw-r--r-- | services/java/com/android/server/status/StatusBarService.java | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/services/java/com/android/server/status/StatusBarService.java b/services/java/com/android/server/status/StatusBarService.java index 1db20df..a103dcb 100644 --- a/services/java/com/android/server/status/StatusBarService.java +++ b/services/java/com/android/server/status/StatusBarService.java @@ -31,6 +31,7 @@ import android.content.IntentFilter; import android.content.pm.PackageManager; import android.content.res.Resources; import android.graphics.PixelFormat; +import android.graphics.Rect; import android.graphics.drawable.Drawable; import android.net.Uri; import android.os.IBinder; @@ -1277,8 +1278,13 @@ public class StatusBarService extends IStatusBar.Stub ActivityManagerNative.getDefault().resumeAppSwitches(); } catch (RemoteException e) { } + int[] pos = new int[2]; + v.getLocationOnScreen(pos); + Intent overlay = new Intent(); + overlay.setSourceBounds( + new Rect(pos[0], pos[1], pos[0]+v.getWidth(), pos[1]+v.getHeight())); try { - mIntent.send(); + mIntent.send(mContext, 0, overlay); mNotificationCallbacks.onNotificationClick(mPkg, mTag, mId); } catch (PendingIntent.CanceledException e) { // the stack trace isn't very helpful here. Just log the exception message. |