Skip to content

Commit

Permalink
Issue photo#462 (Card 10)
Browse files Browse the repository at this point in the history
- NavigationHandlerFragment.FragmentAdapter: fix issue when viewpager
doesn't get refreshed after album item inserted. Added getItemPosition
implementation
  • Loading branch information
httpdispatch committed Oct 15, 2013
1 parent 609baec commit 3151c06
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -621,6 +621,15 @@ public Fragment getActiveFragment(ViewPager container, FragmentManager fragmentM
private String makeFragmentName(int viewId, long id) {
return "android:switcher:" + viewId + ":" + id;
}

/**
* Hack to refresh ViewPager when data set notification event is
* received http://stackoverflow.com/a/7287121/527759
*/
@Override
public int getItemPosition(Object object) {
return POSITION_NONE;
}
}

public static interface TitleChangedHandler {
Expand Down

0 comments on commit 3151c06

Please sign in to comment.