summaryrefslogtreecommitdiff
path: root/android
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-04-09 08:45:12 +0300
committerPaul Buetow <paul@buetow.org>2026-04-09 08:45:12 +0300
commit6cf8890bac1591147fefe5a45f06290ef71f683b (patch)
tree3a3715a6b4cf065ad49c84ff5e4f28ddbacb1b88 /android
parentc4e0c74f0608626ecf55a3afe0e74ef25dacb0b3 (diff)
Add singleTask launch mode to ShareActivity
Diffstat (limited to 'android')
-rw-r--r--android/AndroidManifest.xml16
1 files changed, 15 insertions, 1 deletions
diff --git a/android/AndroidManifest.xml b/android/AndroidManifest.xml
index 51edc1b..0e6115e 100644
--- a/android/AndroidManifest.xml
+++ b/android/AndroidManifest.xml
@@ -1,13 +1,28 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:tools="http://schemas.android.com/tools"
package="org.buetow.quicklogger">
<application>
+ <!-- Also accept SEND on the main Go activity (some launchers prefer direct targets) -->
+ <activity
+ android:name="org.golang.app.GoNativeActivity"
+ android:exported="true"
+ tools:node="merge">
+ <intent-filter>
+ <action android:name="android.intent.action.SEND" />
+ <category android:name="android.intent.category.DEFAULT" />
+ <data android:mimeType="text/plain" />
+ <data android:mimeType="text/*" />
+ </intent-filter>
+ </activity>
+
<!-- Share receiver activity: writes text to cache and launches main app -->
<activity
android:name=".ShareActivity"
android:exported="true"
android:excludeFromRecents="true"
+ android:launchMode="singleTask"
android:taskAffinity=""
android:theme="@android:style/Theme.Translucent.NoTitleBar">
<intent-filter>
@@ -19,4 +34,3 @@
</activity>
</application>
</manifest>
-