[Android] Ignore useless FAB visibility changes
Geoffrey Métais
git at videolan.org
Wed Sep 12 10:51:59 CEST 2018
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Wed Sep 12 09:20:18 2018 +0200| [c430667807ba0af5799f08eb61a22121eb9f683b] | committer: Geoffrey Métais
Ignore useless FAB visibility changes
> https://code.videolan.org/videolan/vlc-android/commit/c430667807ba0af5799f08eb61a22121eb9f683b
---
vlc-android/src/org/videolan/vlc/gui/browser/MediaBrowserFragment.java | 1 +
1 file changed, 1 insertion(+)
diff --git a/vlc-android/src/org/videolan/vlc/gui/browser/MediaBrowserFragment.java b/vlc-android/src/org/videolan/vlc/gui/browser/MediaBrowserFragment.java
index 0c9144917..ebd6eda72 100644
--- a/vlc-android/src/org/videolan/vlc/gui/browser/MediaBrowserFragment.java
+++ b/vlc-android/src/org/videolan/vlc/gui/browser/MediaBrowserFragment.java
@@ -135,6 +135,7 @@ public abstract class MediaBrowserFragment<T extends SortableModel> extends Frag
}
public void setFabPlayVisibility(boolean enable) {
+ if (enable == (mFabPlay.getVisibility() == View.VISIBLE)) return;
if (mFabPlay != null) mFabPlay.setVisibility(enable ? View.VISIBLE : View.GONE);
}
More information about the Android
mailing list