From b77c586050f1bef63db1683ee595d85bef70f07a Mon Sep 17 00:00:00 2001 From: Fabrice Di Meglio Date: Thu, 17 Oct 2013 15:40:11 -0700 Subject: Fix bug #11252410 Recents items stuck behind hammerhead navigation panel in landscape 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 | 2 ++ 1 file changed, 2 insertions(+) (limited to 'core/java/android/view/View.java') diff --git a/core/java/android/view/View.java b/core/java/android/view/View.java index 9c388dd..c4e8376 100644 --- a/core/java/android/view/View.java +++ b/core/java/android/view/View.java @@ -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; -- cgit v1.1