Commit f45a8c05 authored by Adrien Maglo's avatar Adrien Maglo

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

parent 16bf8360
......@@ -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
......
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment