[Android] Remove useless check

Geoffrey Métais git at videolan.org
Thu Aug 3 18:52:28 CEST 2017


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Thu Aug  3 18:12:36 2017 +0200| [9d1571d56cfb0902bf39ae9036ab1e32752cf48e] | committer: Geoffrey Métais

Remove useless check

> https://code.videolan.org/videolan/vlc-android/commit/9d1571d56cfb0902bf39ae9036ab1e32752cf48e
---

 .../src/org/videolan/vlc/gui/browser/BaseBrowserFragment.java  | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

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 e7bfcc79b..c9bcde10a 100644
--- a/vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserFragment.java
+++ b/vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserFragment.java
@@ -186,12 +186,10 @@ public abstract class BaseBrowserFragment extends SortableFragment<BaseBrowserAd
         registerForContextMenu(mRecyclerView);
         mSwipeRefreshLayout.setOnRefreshListener(this);
         if (savedInstanceState != null) {
-            if (VLCApplication.hasData(KEY_MEDIA_LIST+mMrl)) {
-                @SuppressWarnings("unchecked")
-                final ArrayList<MediaLibraryItem> mediaList = (ArrayList<MediaLibraryItem>) VLCApplication.getData(KEY_MEDIA_LIST+mMrl);
-                if (!Util.isListEmpty(mediaList))
-                    mAdapter.update(mediaList);
-            }
+            @SuppressWarnings("unchecked")
+            final ArrayList<MediaLibraryItem> mediaList = (ArrayList<MediaLibraryItem>) VLCApplication.getData(KEY_MEDIA_LIST+mMrl);
+            if (!Util.isListEmpty(mediaList))
+                mAdapter.update(mediaList);
         } else if (!(this instanceof NetworkBrowserFragment))
             refresh();
     }



More information about the Android mailing list