OSDN Git Service

Fix bug #11252410 Recents items stuck behind hammerhead navigation panel in landscape
authorFabrice Di Meglio <fdimeglio@google.com>
Thu, 17 Oct 2013 22:40:11 +0000 (15:40 -0700)
committerFabrice Di Meglio <fdimeglio@google.com>
Fri, 18 Oct 2013 00:00:36 +0000 (17:00 -0700)
Right padding was wrong for the LinearLayout with id/recents_linear_layout. Its value
was first correctly set by the fitSystemWindows(Rect insets) call but then was reset
to "0" during padding resolution.

Thus make sure that the initial values for user padding left/righ are also set to the
ones coming from the computed ones.

Change-Id: I60390ff7a24286a8f7214eaff8606cb76268ee90

core/java/android/view/View.java

index 9c388dd..c4e8376 100644 (file)
@@ -5878,6 +5878,8 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
                 sThreadLocal.set(localInsets);
             }
             boolean res = computeFitSystemWindows(insets, localInsets);
+            mUserPaddingLeftInitial = localInsets.left;
+            mUserPaddingRightInitial = localInsets.right;
             internalSetPadding(localInsets.left, localInsets.top,
                     localInsets.right, localInsets.bottom);
             return res;