Skip to content

Commit 7c3c0dc

Browse files
committed
make sure shortcuts open new app instances
1 parent f99cb03 commit 7c3c0dc

File tree

1 file changed

+1
-0
lines changed
  • app/src/main/kotlin/com/simplemobiletools/filemanager/pro/adapters

1 file changed

+1
-0
lines changed

app/src/main/kotlin/com/simplemobiletools/filemanager/pro/adapters/ItemsAdapter.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,7 @@ class ItemsAdapter(activity: SimpleActivity, var listItems: MutableList<ListItem
245245
getShortcutImage(path, drawable) {
246246
val intent = Intent(activity, SplashActivity::class.java)
247247
intent.action = Intent.ACTION_VIEW
248+
intent.flags = intent.flags or Intent.FLAG_ACTIVITY_NEW_TASK or Intent.FLAG_ACTIVITY_CLEAR_TASK or Intent.FLAG_ACTIVITY_NO_HISTORY
248249
intent.data = Uri.fromFile(File(path))
249250

250251
val shortcut = ShortcutInfo.Builder(activity, path)

0 commit comments

Comments
 (0)