summaryrefslogtreecommitdiff
path: root/src/com/android/launcher3/notification/NotificationInfo.java
diff options
context:
space:
mode:
authorTony Wickham <twickham@google.com>2017-02-01 11:12:12 -0800
committerTony Wickham <twickham@google.com>2017-02-01 11:13:27 -0800
commit4aab7476f235edac2cdf666b1794b27b8ed24d2c (patch)
treee162b3b15c7e0d870feaf60407a9cc3aae200602 /src/com/android/launcher3/notification/NotificationInfo.java
parent1fafd719cb4c960448010e5fbdd8cc2634bd347d (diff)
downloadLauncher3-4aab7476f235edac2cdf666b1794b27b8ed24d2c.tar.gz
Add ActivityOptions for clip reveal animation for notifications
Change-Id: Ib621e3ae73eecf047568b85112cddaf3ae60bb0f
Diffstat (limited to 'src/com/android/launcher3/notification/NotificationInfo.java')
-rw-r--r--src/com/android/launcher3/notification/NotificationInfo.java6
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 af5e817f1a..6cc0e900d2 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();
}