#334 fix unlock in Android 8.0 by setting windowIsTranslucent to false

This commit is contained in:
Julian Raufelder 2021-07-16 12:17:31 +02:00
parent 1a96a4dd46
commit 24dbcf20e1
No known key found for this signature in database
GPG Key ID: 17EE71F6634E381D
4 changed files with 34 additions and 12 deletions

View File

@ -80,7 +80,9 @@
</intent-filter>
</activity>
<activity android:name=".ui.activity.AutoUploadChooseVaultActivity" />
<activity
android:name=".ui.activity.UnlockVaultActivity"
android:theme="@style/TransparentPopUp" />
<!-- Cloud Services -->
<activity
@ -97,13 +99,9 @@
</intent-filter>
</activity>
<activity
android:name=".ui.activity.UnlockVaultActivity"
android:label=""
android:theme="@style/TransparentAlertDialogCustom" />
<activity android:name=".ui.activity.EmptyDirIdFileInfoActivity" />
<!-- Settings -->
<activity android:name=".ui.activity.AutoUploadChooseVaultActivity" />
<activity android:name=".ui.activity.EmptyDirIdFileInfoActivity" />
<activity android:name=".ui.activity.BiometricAuthSettingsActivity" />
<activity android:name=".ui.activity.CloudConnectionListActivity" />
<activity android:name=".ui.activity.CloudSettingsActivity" />

View File

@ -1,8 +1,15 @@
<resources>
<style name="FullscreenTheme" parent="AppTheme">
<item name="android:navigationBarColor">@color/colorBlackTransparent</item>
<!-- windowIsTranslucent=false due to https://issuetracker.google.com/issues/68454482 see #467 -->
<item name="android:windowTranslucentStatus">false</item>
<item name="android:navigationBarColor">@color/colorBlackTransparent</item>
</style>
<style name="TransparentPopUp" parent="AppTheme">
<item name="android:windowBackground">@color/colorPrimaryTransparent</item>
<!-- windowIsTranslucent=false due to https://issuetracker.google.com/issues/68454482 see #467 -->
<item name="android:windowIsTranslucent">false</item>
</style>
</resources>

View File

@ -0,0 +1,14 @@
<resources>
<!-- keep in sync with default style -->
<style name="FullscreenTheme" parent="AppTheme">
<item name="android:windowBackground">@null</item>
</style>
<!-- keep in sync with default style -->
<style name="TransparentPopUp" parent="AppTheme">
<item name="android:windowBackground">@android:color/transparent</item>
<item name="android:windowIsTranslucent">true</item>
</style>
</resources>

View File

@ -29,10 +29,6 @@
<item name="colorAccent">@color/colorPrimary</item>
</style>
<style name="TransparentAlertDialogCustom" parent="AlertDialogCustom">
<item name="android:windowBackground">@android:color/transparent</item>
</style>
<style name="Toolbar.Theme" parent="ThemeOverlay.AppCompat.Dark.ActionBar">
<item name="colorAccent">@color/textColorWhite</item>
</style>
@ -116,8 +112,15 @@
<item name="android:windowAnimationStyle">@null</item>
</style>
<!-- keep in sync with v27 style -->
<style name="FullscreenTheme" parent="AppTheme">
<item name="android:windowBackground">@null</item>
</style>
<!-- keep in sync with v27 style -->
<style name="TransparentPopUp" parent="AppTheme">
<item name="android:windowBackground">@android:color/transparent</item>
<item name="android:windowIsTranslucent">true</item>
</style>
</resources>