[Android] GUI: fix the wrong positioning of the FlingViewGroup on fragment view creation

Adrien Maglo git at videolan.org
Tue Feb 18 11:21:51 CET 2014


vlc-ports/android | branch: master | Adrien Maglo <magsoft at videolan.org> | Tue Feb 18 11:21:29 2014 +0100| [f45a8c0542fccd595eba8d6cc1ecacb5e741a387] | committer: Adrien Maglo

GUI: fix the wrong positioning of the FlingViewGroup on fragment view creation

> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=f45a8c0542fccd595eba8d6cc1ecacb5e741a387
---

 vlc-android/src/org/videolan/vlc/gui/AboutFragment.java               |    1 +
 .../src/org/videolan/vlc/gui/audio/AudioAlbumsSongsFragment.java      |    1 +
 2 files changed, 2 insertions(+)

diff --git a/vlc-android/src/org/videolan/vlc/gui/AboutFragment.java b/vlc-android/src/org/videolan/vlc/gui/AboutFragment.java
index 19e9e6a..cc0cedb 100644
--- a/vlc-android/src/org/videolan/vlc/gui/AboutFragment.java
+++ b/vlc-android/src/org/videolan/vlc/gui/AboutFragment.java
@@ -96,6 +96,7 @@ public class AboutFragment extends SherlockFragment {
         addNewTab(mTabHost, "licence", getResources().getString(R.string.licence));
 
         mTabHost.setCurrentTab(mCurrentTab);
+        mFlingViewGroup.snapToScreen(mCurrentTab);
 
         mTabHost.setOnTabChangedListener(new TabHost.OnTabChangeListener() {
             @Override
diff --git a/vlc-android/src/org/videolan/vlc/gui/audio/AudioAlbumsSongsFragment.java b/vlc-android/src/org/videolan/vlc/gui/audio/AudioAlbumsSongsFragment.java
index 8a57d02..9f54782 100644
--- a/vlc-android/src/org/videolan/vlc/gui/audio/AudioAlbumsSongsFragment.java
+++ b/vlc-android/src/org/videolan/vlc/gui/audio/AudioAlbumsSongsFragment.java
@@ -135,6 +135,7 @@ public class AudioAlbumsSongsFragment extends SherlockFragment {
         addNewTab(mTabHost, "songs", "Songs");
 
         mTabHost.setCurrentTab(mCurrentTab);
+        mFlingViewGroup.snapToScreen(mCurrentTab);
 
         mTabHost.setOnTabChangedListener(new TabHost.OnTabChangeListener() {
             @Override



More information about the Android mailing list