From 26e2c38f60b8d801326b44075ea47694efcfa730 Mon Sep 17 00:00:00 2001 From: Bnyro Date: Tue, 17 Jan 2023 19:05:22 +0100 Subject: [PATCH] Create shortcuts dynamically --- app/src/main/AndroidManifest.xml | 27 ---------- .../java/com/github/libretube/LibreTubeApp.kt | 6 +++ .../github/libretube/constants/IntentData.kt | 1 + .../com/github/libretube/obj/AppShortcut.kt | 10 ++++ .../github/libretube/util/ShortcutHelper.kt | 45 ++++++++++++++++ app/src/main/res/xml/shortcuts.xml | 53 ------------------- 6 files changed, 62 insertions(+), 80 deletions(-) create mode 100644 app/src/main/java/com/github/libretube/obj/AppShortcut.kt create mode 100644 app/src/main/java/com/github/libretube/util/ShortcutHelper.kt delete mode 100644 app/src/main/res/xml/shortcuts.xml diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 279de389d..0843a522c 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -82,9 +82,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file