[Android] Check correct fragment to clear browser backstack
Geoffrey Métais
git at videolan.org
Wed Sep 20 09:55:00 CEST 2017
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Wed Sep 20 09:54:09 2017 +0200| [2be702888f4198cf983e146520b0e3b81af2143c] | committer: Geoffrey Métais
Check correct fragment to clear browser backstack
Close #367
> https://code.videolan.org/videolan/vlc-android/commit/2be702888f4198cf983e146520b0e3b81af2143c
---
vlc-android/src/org/videolan/vlc/gui/MainActivity.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/vlc-android/src/org/videolan/vlc/gui/MainActivity.java b/vlc-android/src/org/videolan/vlc/gui/MainActivity.java
index a4ddbf59a..b2531d1d4 100644
--- a/vlc-android/src/org/videolan/vlc/gui/MainActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/MainActivity.java
@@ -652,7 +652,7 @@ public class MainActivity extends ContentActivity implements FilterQueryProvider
fm.beginTransaction().remove(mCurrentFragment).commit();
else {
if (mCurrentFragment instanceof BaseBrowserFragment
- && !((BaseBrowserFragment) mCurrentFragment).isRootDirectory()) {
+ && !((BaseBrowserFragment) getCurrentFragment()).isRootDirectory()) {
getSupportFragmentManager().popBackStackImmediate(getTag(id), FragmentManager.POP_BACK_STACK_INCLUSIVE);
mCurrentFragment = getCurrentFragment();
}
More information about the Android
mailing list