1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-12-17 22:27:46 +01:00

Dashboard: Fix Today widget priority of AWAKE_SLEEP and NOT_MEASURED

This commit is contained in:
Arjan Schrijver 2024-09-29 22:17:11 +02:00
parent 19f04e1867
commit eb2b7fef41

View File

@ -378,7 +378,7 @@ public class DashboardTodayWidget extends AbstractDashboardWidget {
activityKind == ActivityKind.LIGHT_SLEEP)
activityTimestamps.put(i, activityKind);
break;
case SLEEP_ANY:
case AWAKE_SLEEP:
if (activityKind == ActivityKind.EXERCISE ||
activityKind == ActivityKind.ACTIVITY ||
activityKind == ActivityKind.DEEP_SLEEP ||
@ -386,6 +386,16 @@ public class DashboardTodayWidget extends AbstractDashboardWidget {
activityKind == ActivityKind.REM_SLEEP)
activityTimestamps.put(i, activityKind);
break;
case SLEEP_ANY:
case NOT_MEASURED:
if (activityKind == ActivityKind.EXERCISE ||
activityKind == ActivityKind.ACTIVITY ||
activityKind == ActivityKind.DEEP_SLEEP ||
activityKind == ActivityKind.LIGHT_SLEEP ||
activityKind == ActivityKind.REM_SLEEP ||
activityKind == ActivityKind.AWAKE_SLEEP)
activityTimestamps.put(i, activityKind);
break;
default:
activityTimestamps.put(i, activityKind);
break;