mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-27 19:35:10 +01:00
Allow transparent widgets
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user