1
0
mirror of https://github.com/bitwarden/mobile synced 2026-01-20 17:33:15 +00:00

remove "singleTask" launch mode on Android 11+ (#1673)

* remove "singleTask" launch mode on Android 12+

* remove commented and unneccesary code

* fix formatting and change from Android 12 to Android 11
This commit is contained in:
Jake Fink
2021-12-06 14:17:56 -05:00
committed by GitHub
parent ea1ee2c3d3
commit 05bcc10277
6 changed files with 58 additions and 25 deletions

View File

@@ -49,13 +49,35 @@
<!-- Support for LG "Dual Window" mode (for Android < 7.0 users) -->
<meta-data android:name="com.lge.support.SPLIT_WINDOW" android:value="true" />
<!-- Declare MainActivity manually so we can set LaunchMode using API dependant resource -->
<activity
android:name="com.x8bit.bitwarden.MainActivity"
android:configChanges="keyboard|keyboardHidden|navigation|orientation|screenSize|uiMode"
android:exported="true"
android:icon="@mipmap/ic_launcher"
android:label="Bitwarden"
android:launchMode="@integer/launchModeAPIlevel"
android:theme="@style/LaunchTheme">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.SEND" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="application/*" />
<data android:mimeType="image/*" />
<data android:mimeType="video/*" />
<data android:mimeType="text/*" />
</intent-filter>
</activity>
</application>
<!-- Package visibility (for Android 11+) -->
<queries>
<intent>
<action android:name="*"/>
</intent>
<intent>
<action android:name="*"/>
</intent>
</queries>
</manifest>