mirror of
https://github.com/jrpie/Launcher.git
synced 2025-02-23 06:21:31 +01:00
fixed broken Manifest and bug when launching apps
This commit is contained in:
parent
3e4ab2ee97
commit
70db5d5476
2 changed files with 2 additions and 8 deletions
|
@ -9,11 +9,6 @@
|
|||
<uses-permission android:name="android.permission.ACCESS_HIDDEN_PROFILES" />
|
||||
|
||||
|
||||
<queries>
|
||||
<intent>
|
||||
<category android:name="android.intent.category.HOME"/>
|
||||
</intent>
|
||||
</queries>
|
||||
<application
|
||||
android:allowBackup="true"
|
||||
android:icon="@mipmap/ic_launcher"
|
||||
|
|
|
@ -59,9 +59,7 @@ class AppsRecyclerAdapter(val activity: Activity,
|
|||
when (intention){
|
||||
ListActivity.ListActivityIntention.VIEW -> {
|
||||
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
|
||||
|
|
Loading…
Add table
Reference in a new issue