mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2026-07-31 07:44:24 +02:00
Fix AM and PM labels for 24h mode in the dashboard activity chart
This commit is contained in:
committed by
Arjan Schrijver
parent
cfceada4c5
commit
02aa267e8f
+2
-2
@@ -179,11 +179,11 @@ public class DashboardTodayWidget extends AbstractDashboardWidget {
|
|||||||
boolean normalClock = DateFormat.is24HourFormat(GBApplication.getContext());
|
boolean normalClock = DateFormat.is24HourFormat(GBApplication.getContext());
|
||||||
Map<Integer, String> hours = new HashMap<Integer, String>() {
|
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(3, "3");
|
||||||
put(6, normalClock ? "6" : "6am");
|
put(6, normalClock ? "6" : "6am");
|
||||||
put(9, "9");
|
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(15, normalClock ? "15" : "3");
|
||||||
put(18, normalClock ? "18" : "6pm");
|
put(18, normalClock ? "18" : "6pm");
|
||||||
put(21, normalClock ? "21" : "9");
|
put(21, normalClock ? "21" : "9");
|
||||||
|
|||||||
Reference in New Issue
Block a user