java.lang.IllegalStateException: The application's PagerAdapter changed the adapter's contents without calling PagerAdapter#notifyDataSetChanged! Expected adapter item count: 637, found: 638 Pager id: fr.free.nrw.commons:id/mediaDetailsPager Pager class: class android.support.v4.view.ViewPager Problematic adapter: class fr.free.nrw.commons.media.MediaDetailPagerFragment$MediaDetailAdapter

GitHub | misaochan | 5 months ago
  1. 0

    IllegalStateException: The application's PagerAdapter changed the adapter's contents without calling PagerAdapter#notifyDataSetChanged

    GitHub | 5 months ago | misaochan
    java.lang.IllegalStateException: The application's PagerAdapter changed the adapter's contents without calling PagerAdapter#notifyDataSetChanged! Expected adapter item count: 637, found: 638 Pager id: fr.free.nrw.commons:id/mediaDetailsPager Pager class: class android.support.v4.view.ViewPager Problematic adapter: class fr.free.nrw.commons.media.MediaDetailPagerFragment$MediaDetailAdapter
  2. 0

    Fragment must be a public static class crash error after upgrade repo v9 in android studio

    Stack Overflow | 2 months ago | Scofield Tran
    java.lang.IllegalStateException: Fragment <my project package>.CategoryActivity.ArrayListFragment must be a public static class to be properly recreated from instance state.
  3. 0

    Android IllegalStateException: Fragment null must be a public static class to be properly recreated from instance state

    Stack Overflow | 3 months ago | user1785730
    java.lang.IllegalStateException: Fragment null must be a public static class to be properly recreated from instance state.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Crash when swiping through comment threads near the end

    GitHub | 8 months ago | Alexendoo
    java.lang.IllegalStateException: The application's PagerAdapter changed the adapter's contents without calling PagerAdapter#notifyDataSetChanged! Expected adapter item count: 51, found: 101 Pager id: me.ccrama.redditslide.debug:id/content_view Pager class: class android.support.v4.view.ViewPager Problematic adapter: class me.ccrama.redditslide.Activities.CommentsScreen$OverviewPagerAdapter

  1. Indri Yunita 2 times, last 1 week ago
  2. Ajeet 1 times, last 3 months ago
10 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.IllegalStateException

    The application's PagerAdapter changed the adapter's contents without calling PagerAdapter#notifyDataSetChanged! Expected adapter item count: 637, found: 638 Pager id: fr.free.nrw.commons:id/mediaDetailsPager Pager class: class android.support.v4.view.ViewPager Problematic adapter: class fr.free.nrw.commons.media.MediaDetailPagerFragment$MediaDetailAdapter

    at android.support.v4.view.ViewPager.populate()
  2. Android Support v4
    ViewPager.onMeasure
    1. android.support.v4.view.ViewPager.populate(ViewPager.java:1071)
    2. android.support.v4.view.ViewPager.populate(ViewPager.java:1025)
    3. android.support.v4.view.ViewPager.onMeasure(ViewPager.java:1545)
    3 frames
  3. Android Platform
    FrameLayout.onMeasure
    1. android.view.View.measure(View.java:20151)
    2. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6328)
    3. android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1464)
    4. android.widget.LinearLayout.measureVertical(LinearLayout.java:747)
    5. android.widget.LinearLayout.onMeasure(LinearLayout.java:629)
    6. android.view.View.measure(View.java:20151)
    7. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6328)
    8. android.widget.FrameLayout.onMeasure(FrameLayout.java:194)
    9. android.view.View.measure(View.java:20151)
    10. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6328)
    11. android.widget.FrameLayout.onMeasure(FrameLayout.java:194)
    11 frames
  4. Android v7
    ContentFrameLayout.onMeasure
    1. android.support.v7.widget.ContentFrameLayout.onMeasure(ContentFrameLayout.java:135)
    1 frame
  5. Android Platform
    ViewGroup.measureChildWithMargins
    1. android.view.View.measure(View.java:20151)
    2. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6328)
    2 frames
  6. Android v7
    ActionBarOverlayLayout.onMeasure
    1. android.support.v7.widget.ActionBarOverlayLayout.onMeasure(ActionBarOverlayLayout.java:391)
    1 frame
  7. Android Platform
    FrameLayout.onMeasure
    1. android.view.View.measure(View.java:20151)
    2. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6328)
    3. android.widget.FrameLayout.onMeasure(FrameLayout.java:194)
    4. android.view.View.measure(View.java:20151)
    5. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6328)
    6. android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1464)
    7. android.widget.LinearLayout.measureVertical(LinearLayout.java:747)
    8. android.widget.LinearLayout.onMeasure(LinearLayout.java:629)
    9. android.view.View.measure(View.java:20151)
    10. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6328)
    11. android.widget.FrameLayout.onMeasure(FrameLayout.java:194)
    11 frames
  8. Android
    PhoneWindow$DecorView.onMeasure
    1. com.android.internal.policy.PhoneWindow$DecorView.onMeasure(PhoneWindow.java:3158)
    1 frame
  9. Android Platform
    ActivityThread.main
    1. android.view.View.measure(View.java:20151)
    2. android.view.ViewRootImpl.performMeasure(ViewRootImpl.java:2594)
    3. android.view.ViewRootImpl.measureHierarchy(ViewRootImpl.java:1549)
    4. android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1841)
    5. android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1437)
    6. android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:7403)
    7. android.view.Choreographer$CallbackRecord.run(Choreographer.java:920)
    8. android.view.Choreographer.doCallbacks(Choreographer.java:695)
    9. android.view.Choreographer.doFrame(Choreographer.java:631)
    10. android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:906)
    11. android.os.Handler.handleCallback(Handler.java:739)
    12. android.os.Handler.dispatchMessage(Handler.java:95)
    13. android.os.Looper.loop(Looper.java:158)
    14. android.app.ActivityThread.main(ActivityThread.java:7229)
    14 frames
  10. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invoke(Native Method)
    1 frame
  11. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)
    2 frames