Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c6671a8f authored by Yining Liu's avatar Yining Liu
Browse files

Format kotlin code

Format kotlin code to pass git-hook.

Bug: 391889319
Flag: EXEMPT refactor
Test: manual
Change-Id: I1e531b702c21a91123c5f117caacc830914c5dda
parent de3bc236
Loading
Loading
Loading
Loading
+11 −11
Original line number Diff line number Diff line
@@ -83,24 +83,27 @@ constructor(
            printSection("SeenNotificationsInteractor") {
                print(
                    "hasFilteredOutSeenNotifications",
                    notificationListRepository.hasFilteredOutSeenNotifications.value
                    notificationListRepository.hasFilteredOutSeenNotifications.value,
                )
                print(
                    "topOngoingNotificationKey",
                    notificationListRepository.topOngoingNotificationKey.value
                    notificationListRepository.topOngoingNotificationKey.value,
                )
                print(
                    "topUnseenNotificationKey",
                    notificationListRepository.topUnseenNotificationKey.value
                    notificationListRepository.topUnseenNotificationKey.value,
                )
            }
        }

    /**
     * There are three states for LOCK_SCREEN_SHOW_ONLY_UNSEEN_NOTIFICATIONS
     * 0: unset_off, default value for phones
     * 1: on, default value for tablets
     * 2: off
     * There are three states for LOCK_SCREEN_SHOW_ONLY_UNSEEN_NOTIFICATIONS.
     *
     * 0: unset_off, default value for phones.
     *
     * 1: on, default value for tablets.
     *
     * 2: off.
     */
    fun isLockScreenShowOnlyUnseenNotificationsEnabled(): Flow<Boolean> =
        secureSettings
@@ -130,10 +133,7 @@ constructor(
    fun isLockScreenNotificationMinimalismEnabled(): Flow<Boolean> =
        secureSettings
            // emit whenever the setting has changed
            .observerFlow(
                UserHandle.USER_ALL,
                Settings.Secure.LOCK_SCREEN_NOTIFICATION_MINIMALISM,
            )
            .observerFlow(UserHandle.USER_ALL, Settings.Secure.LOCK_SCREEN_NOTIFICATION_MINIMALISM)
            // perform a query immediately
            .onStart { emit(Unit) }
            // for each change, lookup the new value