Skip to content

Commit

Permalink
Theming: Fix date picker button text colour
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Bailey <daniel.bailey@grappleIT.co.uk>
  • Loading branch information
dan0xii committed Nov 4, 2019
1 parent 207f894 commit b0563b9
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,9 @@ public Dialog onCreateDialog(Bundle savedInstanceState) {
});

dialog.show();
dialog.getButton(DatePickerDialog.BUTTON_NEUTRAL).setTextColor(ThemeUtils.primaryColor(getContext()));
dialog.getButton(DatePickerDialog.BUTTON_NEGATIVE).setTextColor(ThemeUtils.primaryColor(getContext()));
dialog.getButton(DatePickerDialog.BUTTON_POSITIVE).setTextColor(ThemeUtils.primaryColor(getContext()));
dialog.getButton(DatePickerDialog.BUTTON_NEUTRAL).setTextColor(ThemeUtils.primaryColor(getContext(), true));
dialog.getButton(DatePickerDialog.BUTTON_NEGATIVE).setTextColor(ThemeUtils.primaryColor(getContext(), true));
dialog.getButton(DatePickerDialog.BUTTON_POSITIVE).setTextColor(ThemeUtils.primaryColor(getContext(), true));

// Prevent days in the past may be chosen
DatePicker picker = dialog.getDatePicker();
Expand Down

0 comments on commit b0563b9

Please sign in to comment.