Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ef740d80 authored by sam cheung's avatar sam cheung Committed by Josh Guilfoyle
Browse files

add setSelction method in Carousel

parent 7e6bfca3
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -213,5 +213,11 @@ public class Carousel extends TabHost implements OnGestureListener {
			mTabWidget.getFilmstrip().requestFocus();
		}
		
		public void setSelection(int index) {
             
            setCurrentTab(index);
            mTabWidget.getFilmstrip().setFilmstripSelection(index);
            
            mCarouselTabContentLayout.setSelection(index, false);
        }
}