mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-27 15:26:58 +00:00
fixed auto-adaptive option
This commit is contained in:
Submodule platform_frameworks_libs_systemui updated: c4f10d7349...7ee8e49de7
@@ -780,10 +780,13 @@ public final class Utilities {
|
||||
}
|
||||
|
||||
// Inject monochrome icon drawable
|
||||
if (ATLEAST_T && useTheme) {
|
||||
if (useTheme) {
|
||||
result.mutate();
|
||||
int[] colors = ThemedIconDrawable.getColors(context);
|
||||
Drawable mono = result.getMonochrome();
|
||||
Drawable mono = null;
|
||||
if (ATLEAST_T) {
|
||||
mono = result.getMonochrome();
|
||||
}
|
||||
|
||||
if (mono != null) {
|
||||
mono.setTint(colors[1]);
|
||||
@@ -794,7 +797,9 @@ public final class Utilities {
|
||||
// Use BitmapDrawable instead of FastBitmapDrawable so that the colorState is
|
||||
// preserved in constantState
|
||||
mono = new BitmapDrawable(monoBitmap);
|
||||
mono.setColorFilter(new BlendModeColorFilter(colors[1], BlendMode.SRC_IN));
|
||||
if (ATLEAST_Q) {
|
||||
mono.setColorFilter(new BlendModeColorFilter(colors[1], BlendMode.SRC_IN));
|
||||
}
|
||||
// Inset the drawable according to the AdaptiveIconDrawable layers
|
||||
mono = new InsetDrawable(mono, getExtraInsetFraction() / 2);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user