devscoutsweden / aktivitetsbanken-android

2 stars 0 forks source link

Views of different type have the same id in the same hierarchy #114

Closed mikaelsvensson closed 8 years ago

mikaelsvensson commented 8 years ago

App crashed because of this:

java.lang.IllegalArgumentException: Wrong state class, expecting View State but received class android.os.Bundle instead. This usually happens when two views of different type have the same id in the same hierarchy. This view's id is id/widgetView. Make sure other views do not use the same id.
at android.view.View.onRestoreInstanceState(View.java:10093)
at android.view.View.dispatchRestoreInstanceState(View.java:10069)
at android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:2421)
...
at android.view.View.restoreHierarchyState(View.java:10047)
at android.support.v4.app.Fragment.restoreViewState(Fragment.java:447)
...
at android.support.v4.view.ViewPager.setCurrentItem(ViewPager.java:490)
at se.devscout.android.view.SlidingTabLayout$TabClickListener.onClick(SlidingTabLayout.java:307)
...