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

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

Move aconfig flag NOTIFICATION_MINIMALISM_PROTOTYPE

Move the aconfig flag
NOTIFICATION_MINIMALISM_PROTOTYPE to a new
package that is accessible to the settings app.

Bug: 330387368
Bug: 354047572
Flag: com.android.server.notification.notification_minimalism
Test: atest SystemUITests
Change-Id: Ifd5c1d7f5bdda35b1ea7fb3f882781db16a7d435
parent 796d3ffc
Loading
Loading
Loading
Loading
+0 −10
Original line number Diff line number Diff line
@@ -39,16 +39,6 @@ flag {
   bug: "343942780"
}

flag {
   name: "notification_minimalism_prototype"
   namespace: "systemui"
   description: "Prototype of notification minimalism; the new 'Intermediate' lockscreen customization proposal."
   bug: "330387368"
   metadata {
        purpose: PURPOSE_BUGFIX
   }
}

flag {
   name: "notification_view_flipper_pausing_v2"
   namespace: "systemui"
+4 −4
Original line number Diff line number Diff line
@@ -17,23 +17,23 @@
package com.android.systemui.statusbar.notification.shared

import android.os.SystemProperties
import com.android.systemui.Flags
import com.android.server.notification.Flags
import com.android.systemui.flags.FlagToken
import com.android.systemui.flags.RefactorFlagUtils

/** Helper for reading or using the minimalism prototype flag state. */
@Suppress("NOTHING_TO_INLINE")
object NotificationMinimalismPrototype {
    const val FLAG_NAME = Flags.FLAG_NOTIFICATION_MINIMALISM_PROTOTYPE
    const val FLAG_NAME = Flags.FLAG_NOTIFICATION_MINIMALISM

    /** A token used for dependency declaration */
    val token: FlagToken
        get() = FlagToken(FLAG_NAME, isEnabled)

    /** Is the heads-up cycling animation enabled */
    /** Is the notification minimalism enabled */
    @JvmStatic
    inline val isEnabled
        get() = Flags.notificationMinimalismPrototype()
        get() = Flags.notificationMinimalism()

    /**
     * The prototype will (by default) use a promoter to ensure that the top unseen notification is
+7 −0
Original line number Diff line number Diff line
@@ -143,6 +143,13 @@ flag {
  bug: "339833083"
}

flag {
  name: "notification_minimalism"
  namespace: "systemui"
  description: "Minimize the notifications to show on the lockscreen."
  bug: "330387368"
}

flag {
  name: "notification_force_group_singletons"
  namespace: "systemui"