mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-28 11:55:20 +01:00
Enabled widget background opacity for Android 12+
This commit is contained in:
@@ -51,8 +51,12 @@ public class WidgetSync extends AppWidgetProvider {
|
||||
|
||||
for (int appWidgetId : appWidgetIds) {
|
||||
boolean daynight = prefs.getBoolean("widget." + appWidgetId + ".daynight", false);
|
||||
boolean semi = prefs.getBoolean("widget." + appWidgetId + ".semi", true);
|
||||
int background = prefs.getInt("widget." + appWidgetId + ".background", Color.TRANSPARENT);
|
||||
boolean semi = prefs.getBoolean("widget." + appWidgetId + ".semi",
|
||||
Build.VERSION.SDK_INT < Build.VERSION_CODES.S);
|
||||
int background = prefs.getInt("widget." + appWidgetId + ".background",
|
||||
Build.VERSION.SDK_INT < Build.VERSION_CODES.S
|
||||
? Color.TRANSPARENT
|
||||
: ColorUtils.setAlphaComponent(Color.BLACK, 127));
|
||||
int version = prefs.getInt("widget." + appWidgetId + ".version", 0);
|
||||
|
||||
if (version <= 1550)
|
||||
|
||||
Reference in New Issue
Block a user