1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-27 02:07:12 +00:00

Small fix

This commit is contained in:
M66B 2022-04-26 11:50:17 +02:00
parent 3b9c422b6f
commit 8f5e39f726

View file

@ -633,7 +633,7 @@ public class FragmentOptionsDisplay extends FragmentBase implements SharedPrefer
public void onClick(View v) {
Context context = getContext();
int editTextColor = Helper.resolveColor(context, android.R.attr.editTextColor);
int highlightColor = prefs.getInt("highlight_color", Helper.resolveColor(context, R.attr.colorAccent));
int highlightColor = prefs.getInt("highlight_color", Helper.resolveColor(context, R.attr.colorUnreadHighlight));
ColorPickerDialogBuilder builder = ColorPickerDialogBuilder
.with(context)
@ -656,7 +656,7 @@ public class FragmentOptionsDisplay extends FragmentBase implements SharedPrefer
@Override
public void onClick(DialogInterface dialog, int which) {
prefs.edit().remove("highlight_color").apply();
btnHighlightColor.setColor(Helper.resolveColor(context, R.attr.colorAccent));
btnHighlightColor.setColor(Helper.resolveColor(context, R.attr.colorUnreadHighlight));
WidgetUnified.updateData(context);
}
});