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

Commit 7102d06f authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Add animation to PrivacyDialog" into sc-dev

parents ff72e2b5 fd089fb2
Loading
Loading
Loading
Loading
+5 −0
Original line number Original line Diff line number Diff line
@@ -608,6 +608,11 @@
        <item name="android:windowCloseOnTouchOutside">true</item>
        <item name="android:windowCloseOnTouchOutside">true</item>
    </style>
    </style>


    <!-- Privacy dialog -->
    <style name="PrivacyDialog" parent="ScreenRecord">
        <item name="android:windowAnimationStyle">@android:style/Animation.Dialog</item>
    </style>

    <!-- USB Contaminant dialog -->
    <!-- USB Contaminant dialog -->
    <style name ="USBContaminant" />
    <style name ="USBContaminant" />


+1 −1
Original line number Original line Diff line number Diff line
@@ -47,7 +47,7 @@ class PrivacyDialog(
    context: Context,
    context: Context,
    private val list: List<PrivacyElement>,
    private val list: List<PrivacyElement>,
    activityStarter: (String, Int) -> Unit
    activityStarter: (String, Int) -> Unit
) : SystemUIDialog(context, R.style.ScreenRecord) {
) : SystemUIDialog(context, R.style.PrivacyDialog) {


    private val dismissListeners = mutableListOf<WeakReference<OnDialogDismissed>>()
    private val dismissListeners = mutableListOf<WeakReference<OnDialogDismissed>>()
    private val dismissed = AtomicBoolean(false)
    private val dismissed = AtomicBoolean(false)