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

View file

@ -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)