mirror of
https://github.com/nextcloud/android.git
synced 2024-12-18 15:01:57 +03:00
Fix FileDetailFragment not starting
- opens on specified tab - opens when launched from PreviewImageActivity Signed-off-by: ZetaTom <70907959+ZetaTom@users.noreply.github.com>
This commit is contained in:
parent
329f113d75
commit
49ee19d785
2 changed files with 8 additions and 7 deletions
|
@ -352,12 +352,13 @@ public class FileDetailFragment extends FileFragment implements OnClickListener,
|
|||
}
|
||||
});
|
||||
|
||||
// FIXME file detail not opening from Media tab
|
||||
if (binding != null) {
|
||||
TabLayout.Tab tab = binding.tabLayout.getTabAt(activeTab);
|
||||
if (tab == null) return;
|
||||
binding.tabLayout.selectTab(tab);
|
||||
}
|
||||
binding.tabLayout.post(() -> {
|
||||
if (binding != null) {
|
||||
TabLayout.Tab tab = binding.tabLayout.getTabAt(activeTab);
|
||||
if (tab == null) return;
|
||||
tab.select();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -357,7 +357,7 @@ class PreviewImageActivity : FileActivity(), FileFragment.ContainerActivity, OnR
|
|||
}
|
||||
|
||||
startActivity(intent)
|
||||
backToDisplayActivity()
|
||||
finish()
|
||||
}
|
||||
|
||||
override fun showDetails(file: OCFile, activeTab: Int) {
|
||||
|
|
Loading…
Reference in a new issue