Skip to content
This repository was 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
iTwenty wants to merge 1 commit intoJakeWharton:masterfrom
iTwenty:layout-editor-fix
Open

Fix crash in layout editor due to ViewPager not set in onMeasure()#335
iTwenty wants to merge 1 commit intoJakeWharton:masterfrom
iTwenty:layout-editor-fix

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.

1 participant

Comments