Custom grayjay open video url handling

This commit is contained in:
Kelvin 2023-11-04 18:31:01 +01:00
commit 251a5701af

View file

@ -497,6 +497,10 @@ class MainActivity : AppCompatActivity, IWithResultLauncher {
}; };
startActivity(intent); startActivity(intent);
} }
else if(targetData.startsWith("grayjay://video/")) {
val videoUrl = targetData.substring("grayjay://video/".length);
navigate(_fragVideoDetail, videoUrl);
}
} }
"content" -> { "content" -> {
if(!handleContent(targetData, intent.type)) { if(!handleContent(targetData, intent.type)) {