From a7e7cd079407cbef432c36443f7c7be75a24f53f Mon Sep 17 00:00:00 2001 From: dece Date: Wed, 17 Mar 2021 18:58:44 +0100 Subject: [PATCH] MainActivity: handle receiving external videos --- app/src/main/AndroidManifest.xml | 5 +++++ .../io/lowrespalmtree/harvestdawn/MainActivity.kt | 11 +++++++---- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index da905b1..85909e8 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -23,6 +23,11 @@ + + + + + (Intent.EXTRA_STREAM)?.also { + processVideo(it as Uri) + } + } } override fun onCreateOptionsMenu(menu: Menu): Boolean {