Skip to content

Commit

Permalink
Fixed #1180 - refactor
Browse files Browse the repository at this point in the history
Signed-off-by: Amr Hossam <[email protected]>
  • Loading branch information
amrhossamdev committed Mar 27, 2024
1 parent 085c27c commit 72f8567
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ public void onTimeSet(TimePicker view, int hour, int minute) {
}
};

Context context = new ContextThemeWrapper(getActivity(), R.style.MyTimePickerDialogTheme);
Context context = new ContextThemeWrapper(getActivity(), R.style.dayNightTimePickerDialogTheme);

final DatePickerDialog.OnDateSetListener dateCallback = new DatePickerDialog.OnDateSetListener() {

Expand Down
2 changes: 1 addition & 1 deletion onebusaway-android/src/main/res/values/themes.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
</style>

<!-- Custom TimePickerDialog theme for dark mode -->
<style name="MyTimePickerDialogTheme" parent="Theme.MaterialComponents.DayNight.Dialog">
<style name="dayNightTimePickerDialogTheme" parent="Theme.MaterialComponents.DayNight.Dialog">
<item name="colorPrimary">@color/theme_primary</item>
<item name="colorPrimaryDark">@color/theme_primary_dark</item>
<item name="colorAccent">@color/theme_accent</item>
Expand Down

0 comments on commit 72f8567

Please sign in to comment.