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