Skip to content

Commit

Permalink
Register activity as page change listener on pager
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinsawicki committed Nov 27, 2012
1 parent cd1216d commit df66d43
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ protected void onCreate(Bundle savedInstanceState) {

adapter = new GaugePagerAdapter(gauge, this);
pager.setAdapter(adapter);
pager.setOnPageChangeListener(this);
indicator.setViewPager(pager);
pager.scheduleSetItem(1);
}
Expand Down

0 comments on commit df66d43

Please sign in to comment.