Skip to content

Commit 890ecb7

Browse files
committed
widget: disable 'material you'
* Many phones use the background rather than an explicit theme Users are confused, and a number of color schemes don't work well https://www.reddit.com/r/Anki/comments/1m6l77u/new_static_widget_color_android/ Fixes 18947
1 parent 78854e0 commit 890ecb7

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

AnkiDroid/src/main/java/com/ichi2/widget/WidgetUtils.kt

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ package com.ichi2.widget
1818

1919
import android.appwidget.AppWidgetManager
2020
import android.content.Context
21-
import com.ichi2.utils.AdaptionUtil
2221

2322
/**
2423
* @return An [AppWidgetManager] for the provided context, or `null`
@@ -34,7 +33,4 @@ fun getAppWidgetManager(context: Context): AppWidgetManager? {
3433

3534
/** Whether 'Material You' dynamic color should be used for widgets */
3635
val disableMaterialYouDynamicColor: Boolean
37-
// #18869: MIUI 14 (Android 13) doesn't support Material You well - the color is
38-
// based on the system background color, with no means to disable it.
39-
// unconfirmed if this is fixed in future MIUI versions
40-
get() = AdaptionUtil.isMiui
36+
get() = true

0 commit comments

Comments
 (0)