1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-30 11:45:36 +00:00

Refactoring

This commit is contained in:
M66B 2022-03-05 10:03:33 +01:00
parent cc59a13917
commit b9397c4664
7 changed files with 6 additions and 6 deletions

View file

@ -114,12 +114,12 @@ public class Widget extends AppWidgetProvider {
if (layout == 1)
views.setImageViewResource(R.id.ivMessage, unseen == 0
? R.drawable.widget_baseline_mail_outline_widget_24
: R.drawable.widget_baseline_mail_widget_24);
? R.drawable.widget_new_baseline_mail_outline_widget_24
: R.drawable.widget_new_baseline_mail_widget_24);
else
views.setImageViewResource(R.id.ivMessage, unseen == 0
? R.drawable.widget_twotone_mail_outline_24
: R.drawable.widget_baseline_mail_24);
? R.drawable.widget_old_twotone_mail_outline_24
: R.drawable.widget_old_baseline_mail_24);
views.setTextViewText(R.id.tvCount, unseen < 100 ? nf.format(unseen) : "99+");
views.setViewVisibility(R.id.tvCount, layout == 1 && unseen == 0 ? View.GONE : View.VISIBLE);

View file

@ -20,7 +20,7 @@
android:layout_gravity="center_horizontal"
android:layout_weight="2"
android:contentDescription="@string/title_legend_count"
android:src="@drawable/widget_baseline_mail_24" />
android:src="@drawable/widget_old_baseline_mail_24" />
<TextView
android:id="@+id/tvCount"

View file

@ -20,7 +20,7 @@
android:contentDescription="@string/title_legend_count"
android:padding="3dp"
android:scaleType="fitXY"
android:src="@drawable/widget_baseline_mail_widget_24" />
android:src="@drawable/widget_new_baseline_mail_widget_24" />
<TextView
android:id="@+id/tvCount"