mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-19 18:58:19 +00:00
Fix hotseat flicker
b/29648104 Change-Id: I74eea09ab5c4d03c0df3b4a82c7636299edf4d32
This commit is contained in:
@@ -18,6 +18,8 @@ package com.android.launcher3;
|
||||
|
||||
import android.content.Context;
|
||||
import android.content.res.TypedArray;
|
||||
import android.graphics.Color;
|
||||
import android.graphics.drawable.ColorDrawable;
|
||||
import android.graphics.drawable.Drawable;
|
||||
import android.graphics.drawable.InsetDrawable;
|
||||
import android.util.AttributeSet;
|
||||
@@ -60,12 +62,17 @@ public abstract class BaseContainerView extends FrameLayout {
|
||||
mHorizontalPadding = DeviceProfile.getContainerPadding(context, width);
|
||||
}
|
||||
|
||||
TypedArray a = context.obtainStyledAttributes(attrs,
|
||||
R.styleable.BaseContainerView, defStyleAttr, 0);
|
||||
mRevealDrawable = new InsetDrawable(
|
||||
a.getDrawable(R.styleable.BaseContainerView_revealBackground),
|
||||
mHorizontalPadding, 0, mHorizontalPadding, 0);
|
||||
a.recycle();
|
||||
if (FeatureFlags.LAUNCHER3_ALL_APPS_PULL_UP && this instanceof AllAppsContainerView) {
|
||||
mRevealDrawable = new InsetDrawable(new ColorDrawable(Color.WHITE), mHorizontalPadding,
|
||||
0, mHorizontalPadding, 0);
|
||||
} else {
|
||||
TypedArray a = context.obtainStyledAttributes(attrs,
|
||||
R.styleable.BaseContainerView, defStyleAttr, 0);
|
||||
mRevealDrawable = new InsetDrawable(
|
||||
a.getDrawable(R.styleable.BaseContainerView_revealBackground),
|
||||
mHorizontalPadding, 0, mHorizontalPadding, 0);
|
||||
a.recycle();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user