mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-27 06:57:59 +01:00
fix #1571, properly handle the backstack at using shortcuts
This commit is contained in:
parent
d0f69f78b8
commit
e582dd6034
1 changed files with 1 additions and 1 deletions
|
@ -465,7 +465,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.flags = intent.flags or Intent.FLAG_ACTIVITY_NEW_TASK or Intent.FLAG_ACTIVITY_CLEAR_TASK
|
||||||
intent.putExtra(DIRECTORY, path)
|
intent.putExtra(DIRECTORY, path)
|
||||||
|
|
||||||
val shortcut = ShortcutInfo.Builder(activity, path)
|
val shortcut = ShortcutInfo.Builder(activity, path)
|
||||||
|
|
Loading…
Reference in a new issue