From 0186043fc78bdba01d3e7ee0aae802bb0509c21b Mon Sep 17 00:00:00 2001 From: M66B Date: Tue, 13 Apr 2021 09:46:23 +0200 Subject: [PATCH] Added transparent to widget color dialog --- app/src/main/java/eu/faircode/email/ActivityWidget.java | 3 ++- app/src/main/java/eu/faircode/email/ActivityWidgetSync.java | 3 ++- app/src/main/java/eu/faircode/email/ActivityWidgetUnified.java | 3 ++- app/src/main/res/values/strings.xml | 1 + 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/ActivityWidget.java b/app/src/main/java/eu/faircode/email/ActivityWidget.java index 0bd9fb9dca..08250c623c 100644 --- a/app/src/main/java/eu/faircode/email/ActivityWidget.java +++ b/app/src/main/java/eu/faircode/email/ActivityWidget.java @@ -120,9 +120,10 @@ public class ActivityWidget extends ActivityBase { setBackground(); } }) - .setNegativeButton(R.string.title_reset, new DialogInterface.OnClickListener() { + .setNegativeButton(R.string.title_transparent, new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialog, int which) { + cbSemiTransparent.setChecked(false); btnColor.setColor(Color.TRANSPARENT); setBackground(); } diff --git a/app/src/main/java/eu/faircode/email/ActivityWidgetSync.java b/app/src/main/java/eu/faircode/email/ActivityWidgetSync.java index 4abafc8eb4..37e608e689 100644 --- a/app/src/main/java/eu/faircode/email/ActivityWidgetSync.java +++ b/app/src/main/java/eu/faircode/email/ActivityWidgetSync.java @@ -84,9 +84,10 @@ public class ActivityWidgetSync extends ActivityBase { btnColor.setColor(selectedColor); } }) - .setNegativeButton(R.string.title_reset, new DialogInterface.OnClickListener() { + .setNegativeButton(R.string.title_transparent, new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialog, int which) { + cbSemiTransparent.setChecked(false); btnColor.setColor(Color.TRANSPARENT); } }) diff --git a/app/src/main/java/eu/faircode/email/ActivityWidgetUnified.java b/app/src/main/java/eu/faircode/email/ActivityWidgetUnified.java index bafe6a104c..c8f2cfe4f5 100644 --- a/app/src/main/java/eu/faircode/email/ActivityWidgetUnified.java +++ b/app/src/main/java/eu/faircode/email/ActivityWidgetUnified.java @@ -118,9 +118,10 @@ public class ActivityWidgetUnified extends ActivityBase { btnColor.setColor(selectedColor); } }) - .setNegativeButton(R.string.title_reset, new DialogInterface.OnClickListener() { + .setNegativeButton(R.string.title_transparent, new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialog, int which) { + cbSemiTransparent.setChecked(false); btnColor.setColor(Color.TRANSPARENT); } }) diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 8ba36a0bda..81c02c18c8 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -680,6 +680,7 @@ Frequency of refreshing the connection for push messages or frequency of checking for new messages Disable this only in case of empty messages or corrupt attachments Color + Transparent Synchronize manually Separate notifications Swipe left