Skip to content

Commit 69ccd65

Browse files
committed
fix shortcut opening wrong tab
- ensure first (files) tab is selected when opened from shortcut
1 parent e0a8dac commit 69ccd65

File tree

1 file changed

+2
-0
lines changed
  • app/src/main/kotlin/com/simplemobiletools/filemanager/pro/activities

1 file changed

+2
-0
lines changed

app/src/main/kotlin/com/simplemobiletools/filemanager/pro/activities/MainActivity.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -365,6 +365,8 @@ class MainActivity : SimpleActivity() {
365365
if (!File(data.path!!).isDirectory) {
366366
tryOpenPathIntent(data.path!!, false, finishActivity = true)
367367
}
368+
369+
main_view_pager.currentItem = 0
368370
} else {
369371
openPath(config.homeFolder)
370372
}

0 commit comments

Comments
 (0)