Skip to content

Commit

Permalink
Fix misplaced header image after restoring fragment from app switcher
Browse files Browse the repository at this point in the history
  • Loading branch information
hdodenhof committed Feb 18, 2014
1 parent e76dbf8 commit 7309243
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,10 @@ public void onScroll(AbsListView view, int firstVisibleItem, int visibleItemCoun
return;
} else {
if (mHandleResume) {
mHeader.offsetTopAndBottom(mHeaderTop);
int headerTopCurrent = mHeader.getTop();
if (headerTopCurrent != mHeaderTop) {
mHeader.offsetTopAndBottom(mHeaderTop - headerTopCurrent);
}
mHandleResume = false;
}

Expand Down

0 comments on commit 7309243

Please sign in to comment.