Skip to content

Commit

Permalink
android: Handle "Safer component exporting" change on targeting Andro…
Browse files Browse the repository at this point in the history
…id 12

See the change described at
  https://developer.android.com/about/versions/12/behavior-changes-12#exported .

A value of "true" means that the component accepts input from other
apps.

- The launcher is another app, so we need "true" there so that Zulip
  can be launched.

- We need "true" for the share-to-Zulip activity; the content to be
  shared originates from other apps.
  • Loading branch information
chrisbobbe authored and gnprice committed Dec 22, 2021
1 parent 0760de7 commit fa6fbbf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@
android:theme="@style/AppTheme">
<activity
android:name=".MainActivity"
android:exported="true"
android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|screenSize|smallestScreenSize|uiMode"
android:label="@string/app_name"
android:launchMode="singleTask"
Expand All @@ -92,6 +93,7 @@

<activity
android:name=".ShareToZulipActivity"
android:exported="true"
android:label="@string/app_name"
android:launchMode="standard"
>
Expand Down

0 comments on commit fa6fbbf

Please sign in to comment.