Merge "Add animation to PrivacyDialog" into sc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
7102d06f9e
@@ -608,6 +608,11 @@
|
||||
<item name="android:windowCloseOnTouchOutside">true</item>
|
||||
</style>
|
||||
|
||||
<!-- Privacy dialog -->
|
||||
<style name="PrivacyDialog" parent="ScreenRecord">
|
||||
<item name="android:windowAnimationStyle">@android:style/Animation.Dialog</item>
|
||||
</style>
|
||||
|
||||
<!-- USB Contaminant dialog -->
|
||||
<style name ="USBContaminant" />
|
||||
|
||||
|
||||
@@ -47,7 +47,7 @@ class PrivacyDialog(
|
||||
context: Context,
|
||||
private val list: List<PrivacyElement>,
|
||||
activityStarter: (String, Int) -> Unit
|
||||
) : SystemUIDialog(context, R.style.ScreenRecord) {
|
||||
) : SystemUIDialog(context, R.style.PrivacyDialog) {
|
||||
|
||||
private val dismissListeners = mutableListOf<WeakReference<OnDialogDismissed>>()
|
||||
private val dismissed = AtomicBoolean(false)
|
||||
|
||||
Reference in New Issue
Block a user