fix shortcut opening wrong tab

- ensure first (files) tab is selected when opened from shortcut
This commit is contained in:
darthpaul 2022-10-11 06:56:36 +01:00
parent e0a8dace7c
commit 69ccd6532b
1 changed files with 2 additions and 0 deletions

View File

@ -365,6 +365,8 @@ class MainActivity : SimpleActivity() {
if (!File(data.path!!).isDirectory) { if (!File(data.path!!).isDirectory) {
tryOpenPathIntent(data.path!!, false, finishActivity = true) tryOpenPathIntent(data.path!!, false, finishActivity = true)
} }
main_view_pager.currentItem = 0
} else { } else {
openPath(config.homeFolder) openPath(config.homeFolder)
} }