Show outline icon when no new messages

This commit is contained in:
M66B 2020-01-02 08:58:39 +01:00
parent 1699da724a
commit 6256a22691
2 changed files with 4 additions and 0 deletions

View File

@ -68,6 +68,9 @@ public class Widget extends AppWidgetProvider {
views.setOnClickPendingIntent(R.id.widget, pi);
views.setImageViewResource(R.id.ivMessage, unseen == 0
? R.drawable.baseline_mail_outline_24
: R.drawable.baseline_mail_24);
views.setTextViewText(R.id.tvCount, unseen < 100 ? nf.format(unseen) : "");
if (!TextUtils.isEmpty(name)) {

View File

@ -8,6 +8,7 @@
android:padding="6dp">
<ImageView
android:id="@+id/ivMessage"
android:layout_width="24dp"
android:layout_height="0dp"
android:layout_gravity="center_horizontal"