commit | ed4121e1fc3e9d5ea189ab57a08447993d9e0d50 | [log] [tgz] |
---|---|---|
author | Winson Chung <winsonc@google.com> | Tue May 05 14:30:44 2015 -0700 |
committer | Winson Chung <winsonc@google.com> | Tue May 05 14:32:29 2015 -0700 |
tree | d21f21455bfac5588826bedda88f7b54bb53e04d | |
parent | 9892e5874061233dec57107d1d3d7d5d8e1f5d93 [diff] |
Fixing all apps relayout issue. Bug: 20617223 Change-Id: Ia7efbdb1c8744ca58070b6b20e96bcb19389c0d1
diff --git a/src/com/android/launcher3/AppsContainerView.java b/src/com/android/launcher3/AppsContainerView.java index f7adaf8..c3cf629 100644 --- a/src/com/android/launcher3/AppsContainerView.java +++ b/src/com/android/launcher3/AppsContainerView.java
@@ -232,8 +232,15 @@ mFixedBounds.set(fixedBounds); } - updateBackgrounds(); - updatePaddings(); + // Post the updates since they can trigger a relayout, and this call can be triggered from + // a layout pass itself. + post(new Runnable() { + @Override + public void run() { + updateBackgrounds(); + updatePaddings(); + } + }); } @Override