OSDN Git Service

Merge "Update the animation when showing / closing inline controls" into nyc-dev
authorMady Mellor <madym@google.com>
Mon, 29 Feb 2016 21:43:40 +0000 (21:43 +0000)
committerAndroid (Google) Code Review <android-gerrit@google.com>
Mon, 29 Feb 2016 21:43:41 +0000 (21:43 +0000)
1  2 
packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java
packages/SystemUI/src/com/android/systemui/statusbar/stack/NotificationStackScrollLayout.java

@@@ -1044,12 -1054,12 +1054,12 @@@ public abstract class BaseStatusBar ext
  
                  MetricsLogger.action(mContext, MetricsEvent.ACTION_NOTE_CONTROLS);
  
 -                // ensure that it's layouted but not visible until actually laid out
 +                // ensure that it's laid but not visible until actually laid out
                  guts.setVisibility(View.INVISIBLE);
 -                // Post to ensure the the guts are properly layed out.
 +                // Post to ensure the the guts are properly laid out.
                  guts.post(new Runnable() {
                      public void run() {
-                         dismissPopups();
+                         dismissPopups(-1 /* x */, -1 /* y */, false /* resetGear */);
                          guts.setVisibility(View.VISIBLE);
                          final double horz = Math.max(guts.getWidth() - x, x);
                          final double vert = Math.max(guts.getHeight() - y, y);