[Android] Search animation: prevent crash

Geoffrey Métais git at videolan.org
Mon Jul 2 18:10:56 CEST 2018


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Mon Jul  2 18:10:20 2018 +0200| [b85a67053c014660e0c3719b68078c901c6b1a6d] | committer: Geoffrey Métais

Search animation: prevent crash

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

 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 c0cd3048d..54959eec6 100644
--- a/vlc-android/src/org/videolan/vlc/gui/browser/MediaBrowserFragment.java
+++ b/vlc-android/src/org/videolan/vlc/gui/browser/MediaBrowserFragment.java
@@ -313,6 +313,7 @@ public abstract class MediaBrowserFragment<T extends BaseModel> extends Fragment
             cs.setVisibility(R.id.searchButton, visible ? ConstraintSet.VISIBLE : ConstraintSet.GONE);
             TransitionManager.beginDelayedTransition(cl);
             cs.applyTo(cl);
+            mSearchButtonView.requestLayout();
         } else UiTools.setViewVisibility(mSearchButtonView, visible ? View.VISIBLE : View.GONE);
     }
 }



More information about the Android mailing list