Skip to content
This repository has been archived by the owner on Apr 19, 2018. It is now read-only.

Fix crash in layout editor due to ViewPager not set in onMeasure() #335

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Fix crash in layout editor due to ViewPager not set in onMeasure() #335

wants to merge 1 commit into from

Conversation

iTwenty
Copy link

@iTwenty iTwenty commented Jan 19, 2015

The call to setCurrentItem() in onMeasure() throws an IllegalStateException as the ViewPager is null in editor. This commit fixes this by calling setCurrentItem() only when not in edit mode.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant