mirror of
https://github.com/SimpleMobileTools/Simple-File-Manager.git
synced 2025-02-17 04:10:39 +01:00
make sure shortcuts open new app instances
This commit is contained in:
parent
f99cb03c57
commit
7c3c0dc92b
@ -245,6 +245,7 @@ class ItemsAdapter(activity: SimpleActivity, var listItems: MutableList<ListItem
|
|||||||
getShortcutImage(path, drawable) {
|
getShortcutImage(path, drawable) {
|
||||||
val intent = Intent(activity, SplashActivity::class.java)
|
val intent = Intent(activity, SplashActivity::class.java)
|
||||||
intent.action = Intent.ACTION_VIEW
|
intent.action = Intent.ACTION_VIEW
|
||||||
|
intent.flags = intent.flags or Intent.FLAG_ACTIVITY_NEW_TASK or Intent.FLAG_ACTIVITY_CLEAR_TASK or Intent.FLAG_ACTIVITY_NO_HISTORY
|
||||||
intent.data = Uri.fromFile(File(path))
|
intent.data = Uri.fromFile(File(path))
|
||||||
|
|
||||||
val shortcut = ShortcutInfo.Builder(activity, path)
|
val shortcut = ShortcutInfo.Builder(activity, path)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user