[Android] do not animate untagged fragments
Sébastien Toque
git at videolan.org
Wed Jun 27 23:41:53 CEST 2012
android | branch: master | Sébastien Toque <xilasz at gmail.com> | Wed Jun 27 21:30:39 2012 +0200| [1d308fed7563d6b8b5c04cb36c523358c2c2142a] | committer: Sébastien Toque
do not animate untagged fragments
> http://git.videolan.org/gitweb.cgi/android.git/?a=commit;h=1d308fed7563d6b8b5c04cb36c523358c2c2142a
---
vlc-android/src/org/videolan/vlc/gui/MainActivity.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/vlc-android/src/org/videolan/vlc/gui/MainActivity.java b/vlc-android/src/org/videolan/vlc/gui/MainActivity.java
index 0b50581..3329f96 100644
--- a/vlc-android/src/org/videolan/vlc/gui/MainActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/MainActivity.java
@@ -529,7 +529,7 @@ public class MainActivity extends SherlockFragmentActivity {
else if (mTag.equalsIgnoreCase("audio"))
((MainActivity)mActivity).mCurrentViewTab = AUDIO_TAB;
- if (current != null) {
+ if (current != null && current.getTag() != null) {
if (current.getTag() == mTag)
return;
if (mTag.equalsIgnoreCase("video"))
More information about the Android
mailing list