mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2025-02-13 19:05:39 +01:00
Fix AM and PM labels for 24h mode in the dashboard activity chart
This commit is contained in:
parent
cfceada4c5
commit
02aa267e8f
@ -179,11 +179,11 @@ public class DashboardTodayWidget extends AbstractDashboardWidget {
|
||||
boolean normalClock = DateFormat.is24HourFormat(GBApplication.getContext());
|
||||
Map<Integer, String> hours = new HashMap<Integer, String>() {
|
||||
{
|
||||
put(0, normalClock ? (mode_24h ? "0" : "12") : "12pm");
|
||||
put(0, normalClock ? (mode_24h ? "0" : "12") : (mode_24h ? "12am" : "12pm"));
|
||||
put(3, "3");
|
||||
put(6, normalClock ? "6" : "6am");
|
||||
put(9, "9");
|
||||
put(12, normalClock ? (mode_24h ? "12" : "0") : "12am");
|
||||
put(12, normalClock ? (mode_24h ? "12" : "0") : (mode_24h ? "12pm" : "12am"));
|
||||
put(15, normalClock ? "15" : "3");
|
||||
put(18, normalClock ? "18" : "6pm");
|
||||
put(21, normalClock ? "21" : "9");
|
||||
|
Loading…
x
Reference in New Issue
Block a user