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

@@ -123,7 +123,10 @@ public class Widget extends AppWidgetProvider {
views.setViewVisibility(R.id.tvAccount, ViewStripe.VISIBLE);
}
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)