mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-28 15:56:49 +00:00
Initial changes for handling configuration changes dynamically
Bug: 71709920 Change-Id: I88cf2229dea28d01c13a5a76d2290e91b07d095e
This commit is contained in:
@@ -89,13 +89,17 @@ public class LauncherRootView extends InsettableFrameLayout {
|
||||
|
||||
@Override
|
||||
public void setInsets(Rect insets) {
|
||||
super.setInsets(insets);
|
||||
// If the insets haven't changed, this is a no-op. Avoid unnecessary layout caused by
|
||||
// modifying child layout params.
|
||||
if (!insets.equals(mInsets)) {
|
||||
super.setInsets(insets);
|
||||
}
|
||||
setBackground(insets.top == 0 ? null
|
||||
: Themes.getAttrDrawable(getContext(), R.attr.workspaceStatusBarScrim));
|
||||
}
|
||||
|
||||
public void dispatchInsets() {
|
||||
fitSystemWindows(mInsets);
|
||||
super.setInsets(mInsets);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user