fix #1450, make sure the shortcut opens the proper folder if the app is paused

This commit is contained in:
tibbi 2019-06-19 21:43:56 +02:00
parent 2892d09bcc
commit 07fcbaae6a
1 changed files with 1 additions and 0 deletions

View File

@ -362,6 +362,7 @@ class DirectoryAdapter(activity: BaseSimpleActivity, var dirs: ArrayList<Directo
activity.getShortcutImage(coverThumbnail, drawable) { activity.getShortcutImage(coverThumbnail, drawable) {
val intent = Intent(activity, MediaActivity::class.java) val intent = Intent(activity, MediaActivity::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.putExtra(DIRECTORY, path) intent.putExtra(DIRECTORY, path)
val shortcut = ShortcutInfo.Builder(activity, path) val shortcut = ShortcutInfo.Builder(activity, path)