Set pickers to use dark theme programmatically to work around library bug in which the themeDark XML attribute is not being applied.
This commit is contained in:
parent
7b54878595
commit
c842a3491e
@ -80,6 +80,7 @@ public final class TimePickerDialogController extends DialogFragmentController<B
|
||||
dialog = new NumberPadTimePickerDialog.Builder(mListener)
|
||||
.setHeaderColor(dialogColor)
|
||||
.setBackgroundColor(dialogColor)
|
||||
.setThemeDark(true)
|
||||
.build();
|
||||
} else {
|
||||
dialog = new GridTimePickerDialog.Builder(
|
||||
@ -89,6 +90,7 @@ public final class TimePickerDialogController extends DialogFragmentController<B
|
||||
DateFormat.is24HourFormat(mContext))
|
||||
.setHeaderColor(dialogColor)
|
||||
.setBackgroundColor(dialogColor)
|
||||
.setThemeDark(true)
|
||||
.build();
|
||||
}
|
||||
} else {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user