fix #1450, make sure the shortcut opens the proper folder if the app is paused
This commit is contained in:
parent
2892d09bcc
commit
07fcbaae6a
1 changed files with 1 additions and 0 deletions
|
@ -362,6 +362,7 @@ class DirectoryAdapter(activity: BaseSimpleActivity, var dirs: ArrayList<Directo
|
|||
activity.getShortcutImage(coverThumbnail, drawable) {
|
||||
val intent = Intent(activity, MediaActivity::class.java)
|
||||
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.putExtra(DIRECTORY, path)
|
||||
|
||||
val shortcut = ShortcutInfo.Builder(activity, path)
|
||||
|
|
Loading…
Reference in a new issue