mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-04 01:46:49 +00:00
Move scrim from DragLayer to LauncherRootView.
This change will make opening/closing animations a lot cleaner. Change-Id: I7f8ae301a9a126023833e282d6654bebd09bb306
This commit is contained in:
@@ -11,6 +11,8 @@ import android.util.AttributeSet;
|
||||
import android.view.View;
|
||||
import android.view.ViewDebug;
|
||||
|
||||
import com.android.launcher3.util.Themes;
|
||||
|
||||
import static com.android.launcher3.util.SystemUiController.FLAG_DARK_NAV;
|
||||
import static com.android.launcher3.util.SystemUiController.UI_STATE_ROOT_VIEW;
|
||||
|
||||
@@ -81,6 +83,13 @@ public class LauncherRootView extends InsettableFrameLayout {
|
||||
return true; // I'll take it from here
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setInsets(Rect insets) {
|
||||
super.setInsets(insets);
|
||||
setBackground(insets.top == 0 ? null
|
||||
: Themes.getAttrDrawable(getContext(), R.attr.workspaceStatusBarScrim));
|
||||
}
|
||||
|
||||
public void dispatchInsets() {
|
||||
fitSystemWindows(mInsets);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user