Skip to content

Commit

Permalink
Merge pull request #14326 from nextcloud/backport/14051/stable-3.30
Browse files Browse the repository at this point in the history
[stable-3.30] Fix FileDetailFragment not starting
  • Loading branch information
tobiasKaminsky authored Jan 13, 2025
2 parents fac8d98 + 26296f5 commit 1fca604
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -352,9 +352,11 @@ public void onTabReselected(TabLayout.Tab tab) {
});

binding.tabLayout.post(() -> {
TabLayout.Tab tab1 = binding.tabLayout.getTabAt(activeTab);
if (tab1 == null) return;
tab1.select();
if (binding != null) {
TabLayout.Tab tab = binding.tabLayout.getTabAt(activeTab);
if (tab == null) return;
tab.select();
}
});
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ class PreviewImageActivity : FileActivity(), FileFragment.ContainerActivity, OnR
}

startActivity(intent)
backToDisplayActivity()
finish()
}

override fun showDetails(file: OCFile, activeTab: Int) {
Expand Down

0 comments on commit 1fca604

Please sign in to comment.