diff options
author | Adam Cohen <adamcohen@google.com> | 2013-11-28 02:37:44 -0800 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2013-11-28 02:37:44 -0800 |
commit | 6229a0d564d02d661b8b362dbec2bd748675bbfb (patch) | |
tree | ccc0cc29d72e656f0b7eacaab1f0f3dc1121d862 | |
parent | 1eeb3fc9d874d98dfb43883d17efb4202d83d88a (diff) | |
parent | 6400b84d5594d7b9244e3b118f107033eb8b87a0 (diff) | |
download | android_packages_apps_Trebuchet-6229a0d564d02d661b8b362dbec2bd748675bbfb.tar.gz android_packages_apps_Trebuchet-6229a0d564d02d661b8b362dbec2bd748675bbfb.tar.bz2 android_packages_apps_Trebuchet-6229a0d564d02d661b8b362dbec2bd748675bbfb.zip |
am 6400b84d: Update custom content insets when Workspace insets are set
* commit '6400b84d5594d7b9244e3b118f107033eb8b87a0':
Update custom content insets when Workspace insets are set
-rw-r--r-- | src/com/android/launcher3/Workspace.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/com/android/launcher3/Workspace.java b/src/com/android/launcher3/Workspace.java index 4fd57c1b8..8f3d81495 100644 --- a/src/com/android/launcher3/Workspace.java +++ b/src/com/android/launcher3/Workspace.java @@ -334,6 +334,14 @@ public class Workspace extends SmoothPagedView @Override public void setInsets(Rect insets) { mInsets.set(insets); + + CellLayout customScreen = getScreenWithId(CUSTOM_CONTENT_SCREEN_ID); + if (customScreen != null) { + View customContent = customScreen.getShortcutsAndWidgets().getChildAt(0); + if (customContent instanceof Insettable) { + ((Insettable) customContent).setInsets(mInsets); + } + } } // estimate the size of a widget with spans hSpan, vSpan. return MAX_VALUE for each |