Skip to content

Commit

Permalink
Expiration Dialog customized.
Browse files Browse the repository at this point in the history
  • Loading branch information
surinder-tsys committed May 25, 2023
1 parent 46212ac commit 1933f18
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,10 @@ public void onStart() {
if (currentDialog != null) {
final DatePickerDialog dialog = (DatePickerDialog) currentDialog;

viewThemeUtils.platform.colorTextButtons(dialog.getButton(DatePickerDialog.BUTTON_NEUTRAL),
dialog.getButton(DatePickerDialog.BUTTON_NEGATIVE),
dialog.getButton(DatePickerDialog.BUTTON_POSITIVE));
//NMC Customization
dialog.getButton(DatePickerDialog.BUTTON_NEUTRAL).setTextColor(getResources().getColor(R.color.text_color, null));
dialog.getButton(DatePickerDialog.BUTTON_NEGATIVE).setTextColor(getResources().getColor(R.color.text_color, null));
dialog.getButton(DatePickerDialog.BUTTON_POSITIVE).setTextColor(getResources().getColor(R.color.primary, null));
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,7 @@ public void openDate(@Nullable Date savedDate) {
}

if (backupFiles.size() > 0 && backupFiles.get(backupFiles.size() - 1) != null) {
datePickerDialog = new DatePickerDialog(contactsPreferenceActivity, this, year, month, day);
datePickerDialog = new DatePickerDialog(contactsPreferenceActivity, R.style.FallbackDatePickerDialogTheme, this, year, month, day);
datePickerDialog.getDatePicker().setMaxDate(backupFiles.get(backupFiles.size() - 1)
.getModificationTimestamp());
datePickerDialog.getDatePicker().setMinDate(backupFiles.get(0).getModificationTimestamp());
Expand Down

0 comments on commit 1933f18

Please sign in to comment.