From c801aec27ab5071e0a0ebf27171c25d540d22a42 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 (cherry picked from commit 727289c8ebf504edbd1d330ac1ab9091908fc086) # Conflicts: # app/src/main/java/eu/kanade/tachiyomi/ui/main/MainActivity.kt --- 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 2229c5b94..f08e7074e 100755 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -60,6 +60,33 @@ + + + + + + + + + + + + + + + + + + + + + { + if (intent.data.toString().endsWith(".tachibk")) { + navigator.popUntilRoot() + navigator.push(RestoreBackupScreen(intent.data.toString())) + } + null + } else -> return false }