diff options
author | Jon Miranda <jonmiranda@google.com> | 2017-04-26 10:47:37 -0700 |
---|---|---|
committer | Jon Miranda <jonmiranda@google.com> | 2017-05-01 12:05:10 -0700 |
commit | b8b48733a994fbaf7346170d7fba01da2d31f5d4 (patch) | |
tree | b3303f22f030c4b8c25d920a6ebd55a8acab924d /src/com | |
parent | 59c4ae4d89aefebe19c020742db9c37eb8b39798 (diff) | |
download | packages_apps_Trebuchet-b8b48733a994fbaf7346170d7fba01da2d31f5d4.tar.gz packages_apps_Trebuchet-b8b48733a994fbaf7346170d7fba01da2d31f5d4.tar.bz2 packages_apps_Trebuchet-b8b48733a994fbaf7346170d7fba01da2d31f5d4.zip |
Remove background scrim when there are no top insets.
ie. In portrait multiwindow mode, the launcher is always on the
bottom so we can remove the background scrim that is meant to
protect the status bar contents.
Bug: 36397512
Change-Id: Ie9655b0604b5bebafdfb4153b370bb655129051c
Diffstat (limited to 'src/com')
-rw-r--r-- | src/com/android/launcher3/dragndrop/DragLayer.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/com/android/launcher3/dragndrop/DragLayer.java b/src/com/android/launcher3/dragndrop/DragLayer.java index 14f4e6cb6..7178c5e8d 100644 --- a/src/com/android/launcher3/dragndrop/DragLayer.java +++ b/src/com/android/launcher3/dragndrop/DragLayer.java @@ -449,6 +449,12 @@ public class DragLayer extends InsettableFrameLayout { } @Override + public void setInsets(Rect insets) { + super.setInsets(insets); + setBackgroundResource(insets.top == 0 ? 0 : R.drawable.workspace_bg); + } + + @Override public LayoutParams generateLayoutParams(AttributeSet attrs) { return new LayoutParams(getContext(), attrs); } |