[Android] Clear Browser handler on fragments start

Geoffrey Métais git at videolan.org
Fri Mar 10 12:01:39 CET 2017


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Fri Mar 10 12:00:13 2017 +0100| [4cb7662f3213805f4423e9df54d757b635a04dea] | committer: Geoffrey Métais

Clear Browser handler on fragments start

> https://code.videolan.org/videolan/vlc-android/commit/4cb7662f3213805f4423e9df54d757b635a04dea
---

 vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserFragment.java | 1 +
 1 file changed, 1 insertion(+)

diff --git a/vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserFragment.java b/vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserFragment.java
index 8e76a36..6d344ff 100644
--- a/vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserFragment.java
+++ b/vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserFragment.java
@@ -181,6 +181,7 @@ public abstract class BaseBrowserFragment extends MediaBrowserFragment implement
     @Override
     public void onStart() {
         super.onStart();
+        sBrowserHandler.removeCallbacksAndMessages(null);
         if (!mRoot && mFabPlay != null) {
             mFabPlay.setImageResource(R.drawable.ic_fab_play);
             updateFab();



More information about the Android mailing list