mirror of https://github.com/M66B/FairEmail.git
Added notes to message list widget
This commit is contained in:
parent
68e32b3976
commit
143f95adb7
|
@ -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);
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
Loading…
Reference in New Issue