Allow transparent widgets

This commit is contained in:
M66B
2021-04-12 19:57:54 +02:00
parent 1ba2953308
commit 0107168095
6 changed files with 25 additions and 5 deletions

View File

@@ -95,7 +95,10 @@ public class WidgetUnified extends AppWidgetProvider {
views.setPendingIntentTemplate(R.id.lv, piItem);
if (background != Color.TRANSPARENT) {
if (background == Color.TRANSPARENT) {
if (!semi && version > 1550)
views.setInt(R.id.widget, "setBackgroundColor", background);
} else {
float lum = (float) ColorUtils.calculateLuminance(background);
if (semi)