Added widget/unified option to highlight unread messages

This commit is contained in:
M66B
2022-04-26 09:57:42 +02:00
parent 6ed5562ce6
commit cf5dbff674
4 changed files with 27 additions and 2 deletions

View File

@@ -659,6 +659,7 @@ public class FragmentOptionsDisplay extends FragmentBase implements SharedPrefer
public void onClick(DialogInterface dialog, int selectedColor, Integer[] allColors) {
prefs.edit().putInt("highlight_color", selectedColor).apply();
btnHighlightColor.setColor(selectedColor);
WidgetUnified.updateData(context);
}
})
.setNegativeButton(R.string.title_reset, new DialogInterface.OnClickListener() {
@@ -666,6 +667,7 @@ public class FragmentOptionsDisplay extends FragmentBase implements SharedPrefer
public void onClick(DialogInterface dialog, int which) {
prefs.edit().remove("highlight_color").apply();
btnHighlightColor.setColor(Helper.resolveColor(context, R.attr.colorAccent));
WidgetUnified.updateData(context);
}
});