Loading src/com/android/contacts/detail/ContactDetailFragmentCarousel.java +10 −0 Original line number Diff line number Diff line Loading @@ -173,6 +173,16 @@ public class ContactDetailFragmentCarousel extends HorizontalScrollView implemen } } /** * Reset the fragment carousel to show the about page. */ public void reset() { if (mCurrentPage != ABOUT_PAGE) { mCurrentPage = ABOUT_PAGE; snapToEdge(); } } public int getCurrentPage() { return mCurrentPage; } Loading src/com/android/contacts/detail/ContactDetailLayoutController.java +3 −0 Original line number Diff line number Diff line Loading @@ -405,6 +405,9 @@ public class ContactDetailLayoutController { case LayoutMode.TWO_COLUMN_FRAGMENT_CAROUSEL: { // Allow swiping between all fragments mFragmentCarousel.enableSwipe(true); if (isDifferentContact) { mFragmentCarousel.reset(); } if (!isDifferentContact && animateStateChange) { mFragmentCarousel.animateAppear(); } Loading Loading
src/com/android/contacts/detail/ContactDetailFragmentCarousel.java +10 −0 Original line number Diff line number Diff line Loading @@ -173,6 +173,16 @@ public class ContactDetailFragmentCarousel extends HorizontalScrollView implemen } } /** * Reset the fragment carousel to show the about page. */ public void reset() { if (mCurrentPage != ABOUT_PAGE) { mCurrentPage = ABOUT_PAGE; snapToEdge(); } } public int getCurrentPage() { return mCurrentPage; } Loading
src/com/android/contacts/detail/ContactDetailLayoutController.java +3 −0 Original line number Diff line number Diff line Loading @@ -405,6 +405,9 @@ public class ContactDetailLayoutController { case LayoutMode.TWO_COLUMN_FRAGMENT_CAROUSEL: { // Allow swiping between all fragments mFragmentCarousel.enableSwipe(true); if (isDifferentContact) { mFragmentCarousel.reset(); } if (!isDifferentContact && animateStateChange) { mFragmentCarousel.animateAppear(); } Loading