Created
February 16, 2023 17:43
-
-
Save tateisu/8ecb91ec4af6722c1420348fa406b427 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// in manifest | |
<intent-filter> | |
<action android:name="android.intent.action.VIEW" /> | |
<category android:name="android.intent.category.DEFAULT" /> | |
<category android:name="android.intent.category.BROWSABLE" /> | |
<data | |
android:host="post" | |
android:scheme="web+activitypub" /> | |
</intent-filter> | |
// in uri handling code | |
if( uri.scheme == "web+activitypub" && uri.authority == "post"){ | |
val postUri = uri.pathSegments?.elementAtOrNull(0) | |
log.i("postUri=$postUri") | |
if(!postUri.isNullOrEmpty()){ | |
conversationOtherInstance( | |
pos = defaultInsertPosition, | |
urlArg = postUri, | |
statusIdOriginal = null, | |
hostAccess = null, | |
statusIdAccess = null, | |
isReference =false, | |
) | |
return true | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment