mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-12-18 14:47:46 +01:00
Dashboard: Fix Today widget priority of AWAKE_SLEEP and NOT_MEASURED
This commit is contained in:
parent
19f04e1867
commit
eb2b7fef41
@ -378,7 +378,7 @@ public class DashboardTodayWidget extends AbstractDashboardWidget {
|
|||||||
activityKind == ActivityKind.LIGHT_SLEEP)
|
activityKind == ActivityKind.LIGHT_SLEEP)
|
||||||
activityTimestamps.put(i, activityKind);
|
activityTimestamps.put(i, activityKind);
|
||||||
break;
|
break;
|
||||||
case SLEEP_ANY:
|
case AWAKE_SLEEP:
|
||||||
if (activityKind == ActivityKind.EXERCISE ||
|
if (activityKind == ActivityKind.EXERCISE ||
|
||||||
activityKind == ActivityKind.ACTIVITY ||
|
activityKind == ActivityKind.ACTIVITY ||
|
||||||
activityKind == ActivityKind.DEEP_SLEEP ||
|
activityKind == ActivityKind.DEEP_SLEEP ||
|
||||||
@ -386,6 +386,16 @@ public class DashboardTodayWidget extends AbstractDashboardWidget {
|
|||||||
activityKind == ActivityKind.REM_SLEEP)
|
activityKind == ActivityKind.REM_SLEEP)
|
||||||
activityTimestamps.put(i, activityKind);
|
activityTimestamps.put(i, activityKind);
|
||||||
break;
|
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:
|
default:
|
||||||
activityTimestamps.put(i, activityKind);
|
activityTimestamps.put(i, activityKind);
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user