From 727289c8ebf504edbd1d330ac1ab9091908fc086 Mon Sep 17 00:00:00 2001 From: arkon Date: Sat, 6 Jan 2024 19:03:10 -0500 Subject: [PATCH] Allow opening .tachibk files directly with app to restore --- app/src/main/AndroidManifest.xml | 27 +++++++++++++++++++ .../kanade/tachiyomi/ui/main/MainActivity.kt | 8 ++++++ 2 files changed, 35 insertions(+) diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 3df7beb18d..d368e7f3c7 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -59,6 +59,33 @@ + + + + + + + + + + + + + + + + + + + + + { + if (intent.data.toString().endsWith(".tachibk")) { + navigator.popUntilRoot() + navigator.push(RestoreBackupScreen(intent.data.toString())) + } + null + } else -> return false }