[Android] Refresh browsers only if fragment is resumed

Geoffrey Métais git at videolan.org
Fri Feb 2 10:10:22 CET 2018


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Fri Feb  2 09:25:53 2018 +0100| [0b4ef2cf0b8fccf73be6255c85765eef2bd57091] | committer: Geoffrey Métais

Refresh browsers only if fragment is resumed

> https://code.videolan.org/videolan/vlc-android/commit/0b4ef2cf0b8fccf73be6255c85765eef2bd57091
---

 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 6bcb6c621..31abe4dde 100644
--- a/vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserFragment.java
+++ b/vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserFragment.java
@@ -381,6 +381,7 @@ public abstract class BaseBrowserFragment extends SortableFragment<BaseBrowserAd
 
     @Override
     public void refresh() {
+        if (!isResumed()) return;
         if (isSortEnabled()) {
             refreshList = new ArrayList<>();
             refreshing = true;



More information about the Android mailing list