Commit 63f9b89
committed
Add observer for screen timeout settings to fix tile status
On HyperOS/MIUI, opening display settings while caffeine is set to "Infinite" causes the system to reset the timeout to a last valid value.
The synchronization logic was updated to detect this mismatch and properly restore the original user value instead of just resetting the internal tile state.1 parent f2c71a4 commit 63f9b89
File tree
1 file changed
+12
-0
lines changed- app/src/main/java/com/wstxda/toolkit/manager/caffeine
1 file changed
+12
-0
lines changedLines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
53 | 59 | | |
54 | 60 | | |
55 | 61 | | |
| |||
138 | 144 | | |
139 | 145 | | |
140 | 146 | | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
141 | 152 | | |
142 | 153 | | |
143 | 154 | | |
144 | 155 | | |
| 156 | + | |
145 | 157 | | |
146 | 158 | | |
147 | 159 | | |
| |||
0 commit comments