Added notes to message list widget

This commit is contained in:
M66B 2023-06-24 18:28:33 +02:00
parent 68e32b3976
commit 143f95adb7
2 changed files with 12 additions and 0 deletions

View File

@ -287,6 +287,10 @@ public class WidgetUnifiedRemoteViewsFactory implements RemoteViewsService.Remot
Log.e(ex);
}
views.setTextViewText(R.id.tvNotes, message.notes);
views.setTextColor(R.id.tvNotes, message.notes_color == null ? colorWidgetRead : message.notes_color);
views.setViewVisibility(R.id.tvNotes, message.notes == null ? View.GONE : View.VISIBLE);
views.setViewVisibility(R.id.separator, separators ? View.VISIBLE : View.GONE);
views.setViewVisibility(idAccount, account < 0 && !allColors ? View.VISIBLE : View.GONE);

View File

@ -88,6 +88,14 @@
android:textAppearance="@style/TextAppearance.AppCompat.Small"
android:textColor="?android:textColorPrimary" />
</LinearLayout>
<TextView
android:id="@+id/tvNotes"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Notes"
android:textAppearance="@style/TextAppearance.AppCompat.Small"
android:textColor="?android:textColorPrimary" />
</LinearLayout>
</LinearLayout>