Add a flag to enable or disable incoming share
This commit is contained in:
committed by
Benoit Marty
parent
24d9c10f97
commit
e619fefb7f
@@ -120,10 +120,18 @@
|
||||
<data android:host="user" />
|
||||
<data android:host="room" />
|
||||
</intent-filter>
|
||||
</activity>
|
||||
|
||||
<!-- Using an activity-alias for incoming share intent, in order
|
||||
to be able to disable the feature programmatically -->
|
||||
<activity-alias
|
||||
android:name=".ShareActivity"
|
||||
android:exported="true"
|
||||
android:targetActivity=".MainActivity">
|
||||
<!-- Incoming share simple -->
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.SEND" />
|
||||
<data android:mimeType="*/*"/>
|
||||
<data android:mimeType="*/*" />
|
||||
|
||||
<category android:name="android.intent.category.DEFAULT" />
|
||||
<category android:name="android.intent.category.OPENABLE" />
|
||||
@@ -136,7 +144,7 @@
|
||||
<category android:name="android.intent.category.DEFAULT" />
|
||||
<category android:name="android.intent.category.OPENABLE" />
|
||||
</intent-filter>
|
||||
</activity>
|
||||
</activity-alias>
|
||||
|
||||
<provider
|
||||
android:name="androidx.startup.InitializationProvider"
|
||||
|
||||
Reference in New Issue
Block a user