Added warning icon to send dialog

pull/214/head
M66B 1 year ago
parent e92b908f77
commit d28f524fff

@ -262,6 +262,9 @@ public class FragmentDialogSend extends FragmentDialogBase {
ibMore.setImageTintList(ColorStateList.valueOf(color)); ibMore.setImageTintList(ColorStateList.valueOf(color));
tvMore.setTextColor(color); tvMore.setTextColor(color);
tvMore.setTypeface(warning ? Typeface.DEFAULT_BOLD : Typeface.DEFAULT); tvMore.setTypeface(warning ? Typeface.DEFAULT_BOLD : Typeface.DEFAULT);
tvMore.setCompoundDrawablesRelativeWithIntrinsicBounds(
0, 0,
warning ? R.drawable.twotone_warning_24 : 0, 0);
} }
}; };

@ -332,6 +332,8 @@
android:id="@+id/tvMore" android:id="@+id/tvMore"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="0dp" android:layout_height="0dp"
android:drawablePadding="6dp"
android:drawableTint="?attr/colorWarning"
android:gravity="center_vertical" android:gravity="center_vertical"
android:paddingStart="6dp" android:paddingStart="6dp"
android:text="@string/title_search_more" android:text="@string/title_search_more"

Loading…
Cancel
Save