diff options
author | Fabian Henneke <FabianHenneke@users.noreply.github.com> | 2020-03-29 15:16:42 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-29 18:46:42 +0530 |
commit | 6e84ca1f3c19fc0f67f021ad43c40d7b99416d55 (patch) | |
tree | e516c143115d50079efe646930c920a8305b8daa /app/src/main/AndroidManifest.xml | |
parent | f228dc4a9824f39676fab597d0a83db3f018d378 (diff) |
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.
Diffstat (limited to 'app/src/main/AndroidManifest.xml')
-rw-r--r-- | app/src/main/AndroidManifest.xml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index db187ed7..eb5895d5 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -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" /> |