[Android] Don't refresh on discover end

Geoffrey Métais git at videolan.org
Tue Dec 6 14:32:26 CET 2016


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Tue Dec  6 13:36:55 2016 +0100| [305a257ba5c562d217456765bcddaefd9d906467] | committer: Geoffrey Métais

Don't refresh on discover end

> https://code.videolan.org/videolan/vlc-android/commit/305a257ba5c562d217456765bcddaefd9d906467
---

 vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserFragment.java | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserFragment.java b/vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserFragment.java
index 37314f7..32f3291 100644
--- a/vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserFragment.java
+++ b/vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserFragment.java
@@ -734,8 +734,7 @@ public class AudioBrowserFragment extends BaseAudioBrowser implements DevicesDis
 
     @Override
     public void onDiscoveryCompleted(String entryPoint) {
-        if (!mParsing && mSwipeRefreshLayout.isRefreshing())
-            mHandler.sendEmptyMessage(UPDATE_LIST);
+        mHandler.sendEmptyMessage(mParsing ? SET_REFRESHING : UNSET_REFRESHING);
     }
 
     @Override



More information about the Android mailing list