diff options
author | Hyunyoung Song <hyunyoungs@google.com> | 2016-07-01 18:04:07 -0700 |
---|---|---|
committer | Hyunyoung Song <hyunyoungs@google.com> | 2016-07-01 18:04:07 -0700 |
commit | 45eb757ea7321aeb8b34803681ec2eb4532b6d55 (patch) | |
tree | 528e5f33c39f1871857ad3b74ab225ff1bf9f4e7 /src/com/android/launcher3/Hotseat.java | |
parent | c9e71b88768639322f0821385923cb1626c10682 (diff) | |
download | android_packages_apps_Trebuchet-45eb757ea7321aeb8b34803681ec2eb4532b6d55.tar.gz android_packages_apps_Trebuchet-45eb757ea7321aeb8b34803681ec2eb4532b6d55.tar.bz2 android_packages_apps_Trebuchet-45eb757ea7321aeb8b34803681ec2eb4532b6d55.zip |
Remove relayouts
b/29945805
> Workspace relayout occurs when window flag is set to
change the status bar. This should not cause AllAppsTransitionController
to be initialized.
> Setting/Unsetting background drawables on the hotseat
also causes unnecessary layout. Fix this issue.
Change-Id: I73a3bfd3eb4bc34cf6760ffbd9826e3fef867056
Diffstat (limited to 'src/com/android/launcher3/Hotseat.java')
-rw-r--r-- | src/com/android/launcher3/Hotseat.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/com/android/launcher3/Hotseat.java b/src/com/android/launcher3/Hotseat.java index b2f24bec5..b75d2c0da 100644 --- a/src/com/android/launcher3/Hotseat.java +++ b/src/com/android/launcher3/Hotseat.java @@ -220,11 +220,10 @@ public class Hotseat extends FrameLayout } public void setBackgroundTransparent(boolean enable) { - // This causes re-layout. Should replace the logic with simply setting the background alpha if (enable) { - setBackground(null); + mBackground.setAlpha(0); } else { - setBackground(mBackground); + mBackground.setAlpha(255); } } |