Fix PgpActivity crash on orientation change (#681)

Currently, PgpActivity resets or crashes when the orientation (or
screen size) changes.

Since we do not use separate resources in landscape mode, the easiest
and only slightly hacky solution is to tell the system to not recreate
the activity in response to these changes.
This commit is contained in:
Fabian Henneke
2020-03-29 15:16:42 +02:00
committed by GitHub
parent f228dc4a98
commit 6e84ca1f3c

View File

@@ -78,7 +78,8 @@
<activity
android:name=".crypto.PgpActivity"
android:parentActivityName=".PasswordStore"
android:windowSoftInputMode="adjustResize" />
android:windowSoftInputMode="adjustResize"
android:configChanges="orientation|screenSize" />
<activity android:name=".SelectFolderActivity" />
<activity android:name=".sshkeygen.SshKeyGenActivity" android:windowSoftInputMode="adjustResize" />
<activity android:name=".autofill.oreo.ui.AutofillDecryptActivity" />