summaryrefslogtreecommitdiffstats
path: root/packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java
diff options
context:
space:
mode:
authorJorim Jaggi <jjaggi@google.com>2015-08-19 19:50:49 -0700
committerJorim Jaggi <jjaggi@google.com>2015-08-21 12:43:40 -0700
commit5eb67c22489f5fda22770d1fc824e7a8013ec025 (patch)
tree774682cc73aa4b15e4446888a456f865b054a5b1 /packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java
parentab45a217b0002dcf586d529ab8581cacbbfc37e9 (diff)
downloadframeworks_base-5eb67c22489f5fda22770d1fc824e7a8013ec025.zip
frameworks_base-5eb67c22489f5fda22770d1fc824e7a8013ec025.tar.gz
frameworks_base-5eb67c22489f5fda22770d1fc824e7a8013ec025.tar.bz2
Fix jank when clicking on HUN
There is jank at the beginning of the transition when the heads-up disappears when clicking, because a lot of stuff is going on. In order to make it consistent with other notification clicks in the shade, introduce a delay for the disappear animation. Bug: 23365512 Change-Id: Ib7c5db552d6803f96374198c2af38cf8236769cd
Diffstat (limited to 'packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java')
-rw-r--r--packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java b/packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java
index 98f7bf6..c14f215 100644
--- a/packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java
@@ -90,6 +90,7 @@ import com.android.internal.statusbar.StatusBarIconList;
import com.android.internal.util.NotificationColorUtil;
import com.android.internal.widget.LockPatternUtils;
import com.android.keyguard.KeyguardUpdateMonitor;
+import com.android.systemui.DejankUtils;
import com.android.systemui.R;
import com.android.systemui.RecentsComponent;
import com.android.systemui.SwipeHelper;
@@ -1506,6 +1507,15 @@ public abstract class BaseStatusBar extends SystemUI implements
final PendingIntent intent = sbn.getNotification().contentIntent;
final String notificationKey = sbn.getKey();
+ // Mark notification for one frame.
+ row.setJustClicked(true);
+ DejankUtils.postAfterTraversal(new Runnable() {
+ @Override
+ public void run() {
+ row.setJustClicked(false);
+ }
+ });
+
if (NOTIFICATION_CLICK_DEBUG) {
Log.d(TAG, "Clicked on content of " + notificationKey);
}