[Android] Prevent NPE

Geoffrey Métais git at videolan.org
Tue Nov 29 16:20:47 CET 2016


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Tue Nov 29 15:08:14 2016 +0100| [66594e277e39c84612d5b5ba90f83a1186d67fb9] | committer: Geoffrey Métais

Prevent NPE

> https://code.videolan.org/videolan/vlc-android/commit/66594e277e39c84612d5b5ba90f83a1186d67fb9
---

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

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 cb18ee3..8cc87a0 100644
--- a/vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserFragment.java
+++ b/vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserFragment.java
@@ -673,7 +673,7 @@ public abstract class BaseBrowserFragment extends MediaBrowserFragment implement
         mAdapter.restoreList();
     }
     public void setSearchVisibility(boolean visible) {
-        mSearchButtonView.setVisibility(visible ? View.VISIBLE : View.GONE);
+        UiTools.setViewVisibility(mSearchButtonView, visible ? View.VISIBLE : View.GONE);
     }
 
     @Override



More information about the Android mailing list