properly toggle dynamic hide statbar clock

This commit is contained in:
MrSluffy committed 2024-12-20 14:38:11 +08:00
1 parent adfdc67bd6
commit 2ca9e36c65
3 files changed
+9 -9

No files matched your search

+1 -1
View File
@@ -619,7 +619,7 @@ public class Workspace<T extends View & PageIndicator> extends PagedView<T>
}
public void updateStatusbarClock() {
if (mCurrentPage == 0) {
if (mCurrentPage == 0 && PreferenceExtensionsKt.firstBlocking(mPreferenceManager2.getStatusBarClock())) {
LawnchairAppKt.getLawnchairApp(mLauncher).hideClockInStatusBar();
} else {
LawnchairAppKt.getLawnchairApp(mLauncher).restoreClockInStatusBar();