[Android] Set correct FAB icon in network browser

Geoffrey Métais git at videolan.org
Thu Feb 7 17:40:34 CET 2019


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Thu Feb  7 17:33:31 2019 +0100| [2e74cb21ee704609d0f2acb092c55f35b8fcb96c] | committer: Geoffrey Métais

Set correct FAB icon in network browser

> https://code.videolan.org/videolan/vlc-android/commit/2e74cb21ee704609d0f2acb092c55f35b8fcb96c
---

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

diff --git a/vlc-android/src/org/videolan/vlc/gui/browser/NetworkBrowserFragment.java b/vlc-android/src/org/videolan/vlc/gui/browser/NetworkBrowserFragment.java
index 01b058d68..d65e96c87 100644
--- a/vlc-android/src/org/videolan/vlc/gui/browser/NetworkBrowserFragment.java
+++ b/vlc-android/src/org/videolan/vlc/gui/browser/NetworkBrowserFragment.java
@@ -103,7 +103,7 @@ public class NetworkBrowserFragment extends BaseBrowserFragment {
     public void onStart() {
         super.onStart();
         if (!isRootDirectory()) LocalBroadcastManager.getInstance(VLCApplication.getAppContext()).registerReceiver(mLocalReceiver, new IntentFilter(VlcLoginDialog.ACTION_DIALOG_CANCELED));
-        mFabPlay.setImageResource(R.drawable.ic_fab_add);
+        mFabPlay.setImageResource(isRootDirectory() ? R.drawable.ic_fab_add : R.drawable.ic_fab_play);
         mFabPlay.setOnClickListener(this);
         setFabPlayVisibility(true);
     }



More information about the Android mailing list