From a29800606e5fe1c740e6b7c95462e97d16f22960 Mon Sep 17 00:00:00 2001 From: Bnyro Date: Sun, 29 May 2022 13:01:04 +0200 Subject: [PATCH] base --- app/src/main/AndroidManifest.xml | 205 ++++++++++-------- .../java/com/github/libretube/MainActivity.kt | 2 +- .../com/github/libretube/RouterActivity.kt | 26 +++ 3 files changed, 138 insertions(+), 95 deletions(-) create mode 100644 app/src/main/java/com/github/libretube/RouterActivity.kt diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 0db563702..d12bebc14 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -41,100 +41,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + { + if ("text/plain" == intent.type) { + handleSendText(intent) // Handle text being sent + } + } + } + } + + private fun handleSendText(intent: Intent) { + intent.getStringExtra(Intent.EXTRA_TEXT)?.let { + Log.i(it,it) + } + } + +} \ No newline at end of file