Fixed the extra whitespace in activity on task edit page

pull/14/head
Sam Bosley 12 years ago
parent d9e66624ad
commit b74e9381cb

@ -1315,10 +1315,8 @@ ViewPager.OnPageChangeListener, EditNoteActivity.UpdatesChangedListener {
int desiredWidth = MeasureSpec.makeMeasureSpec(view.getWidth(),
MeasureSpec.AT_MOST);
view.measure(desiredWidth, MeasureSpec.UNSPECIFIED);
height = Math.max(view.getMeasuredHeight(), height);
height = Math.max(view.getMeasuredHeight(), height);;
LayoutParams pagerParams = mPager.getLayoutParams();
if (position == 0 && height < pagerParams.height)
return;
if (height > 0 && height != pagerParams.height) {
pagerParams.height = height;
mPager.setLayoutParams(pagerParams);

Loading…
Cancel
Save