From 70db5d547610b9f50cd8e631e39fd5116e29bf24 Mon Sep 17 00:00:00 2001 From: Josia Pietsch Date: Fri, 2 Aug 2024 23:51:39 +0200 Subject: [PATCH] fixed broken Manifest and bug when launching apps --- app/src/main/AndroidManifest.xml | 5 ----- .../jrpie/android/launcher/list/apps/AppsRecyclerAdapter.kt | 5 ++--- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 5df0438..f582bd7 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -9,11 +9,6 @@ - - - - - { launchApp(appPackageName, appUser, activity) - val launchIntent: Intent = context.packageManager - .getLaunchIntentForPackage(appPackageName)!! - context.startActivity(launchIntent) + } ListActivity.ListActivityIntention.PICK -> { val returnIntent = Intent() @@ -108,6 +106,7 @@ class AppsRecyclerAdapter(val activity: Activity, } } + // TODO fixme: handle work profile apps @Suppress("SameReturnValue") private fun showOptionsPopup(viewHolder: ViewHolder, appPackageName: String): Boolean { //create the popup menu