diff options
author | Tony Wickham <twickham@google.com> | 2017-02-07 01:21:29 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2017-02-07 01:21:29 +0000 |
commit | 32e826eb952899e174d963dde7cb30add29e6df1 (patch) | |
tree | c877bd4daf2d6d5ff62334b8c2ae486709b62a58 /src/com/android/launcher3 | |
parent | cda3bfb2e1d89ad872558dd0a82ae79ca6fe41ea (diff) | |
parent | 4aab7476f235edac2cdf666b1794b27b8ed24d2c (diff) | |
download | android_packages_apps_Trebuchet-32e826eb952899e174d963dde7cb30add29e6df1.tar.gz android_packages_apps_Trebuchet-32e826eb952899e174d963dde7cb30add29e6df1.tar.bz2 android_packages_apps_Trebuchet-32e826eb952899e174d963dde7cb30add29e6df1.zip |
Merge "Add ActivityOptions for clip reveal animation for notifications" into ub-launcher3-master
Diffstat (limited to 'src/com/android/launcher3')
-rw-r--r-- | src/com/android/launcher3/notification/NotificationInfo.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/com/android/launcher3/notification/NotificationInfo.java b/src/com/android/launcher3/notification/NotificationInfo.java index af5e817f1..6cc0e900d 100644 --- a/src/com/android/launcher3/notification/NotificationInfo.java +++ b/src/com/android/launcher3/notification/NotificationInfo.java @@ -16,11 +16,13 @@ package com.android.launcher3.notification; +import android.app.ActivityOptions; import android.app.Notification; import android.app.PendingIntent; import android.content.Context; import android.graphics.drawable.Drawable; import android.graphics.drawable.Icon; +import android.os.Bundle; import android.service.notification.StatusBarNotification; import android.view.View; @@ -79,8 +81,10 @@ public class NotificationInfo implements View.OnClickListener { @Override public void onClick(View view) { final Launcher launcher = Launcher.getLauncher(view.getContext()); + Bundle activityOptions = ActivityOptions.makeClipRevealAnimation( + view, 0, 0, view.getWidth(), view.getHeight()).toBundle(); try { - intent.send(); + intent.send(null, 0, null, null, null, null, activityOptions); } catch (PendingIntent.CanceledException e) { e.printStackTrace(); } |