java.lang.IllegalStateException: The application's PagerAdapter changed the adapter's contents without calling PagerAdapter#notifyDataSetChanged! Expected adapter item count: 2, found: 3 Pager id: com.shah.tabs:id/viewpager Pager class: class android.support.v4.view.ViewPager Problematic adapter: class com.shah.tabs.CustomSwipeAdapter

Stack Overflow | Hamza Hafeez | 4 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    how to re-populate the Pagerview view using PagerAdapter?

    Stack Overflow | 4 months ago | Hamza Hafeez
    java.lang.IllegalStateException: The application's PagerAdapter changed the adapter's contents without calling PagerAdapter#notifyDataSetChanged! Expected adapter item count: 2, found: 3 Pager id: com.shah.tabs:id/viewpager Pager class: class android.support.v4.view.ViewPager Problematic adapter: class com.shah.tabs.CustomSwipeAdapter
  2. 0

    Shadowbox crash at 50th item

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

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

    Stack Overflow | 2 years ago | Harsh
    java.lang.IllegalStateException: The application's PagerAdapter changed the adapter's contents without calling PagerAdapter#notifyDataSetChanged!
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    2 unregistered visitors

    Root Cause Analysis

    1. java.lang.IllegalStateException

      The application's PagerAdapter changed the adapter's contents without calling PagerAdapter#notifyDataSetChanged! Expected adapter item count: 2, found: 3 Pager id: com.shah.tabs:id/viewpager Pager class: class android.support.v4.view.ViewPager Problematic adapter: class com.shah.tabs.CustomSwipeAdapter

      at android.support.v4.view.ViewPager.populate()
    2. Android Support v4
      ViewPager.onTouchEvent
      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.onTouchEvent(ViewPager.java:2114)
      3 frames
    3. Android Platform
      ViewGroup.dispatchTouchEvent
      1. android.view.View.dispatchTouchEvent(View.java:8471)
      2. android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2399)
      3. android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2092)
      4. android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2405)
      5. android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2049)
      6. android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2405)
      7. android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2049)
      8. android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2405)
      9. android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2049)
      10. android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2405)
      11. android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2049)
      12. android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2405)
      13. android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2049)
      13 frames
    4. Android
      PhoneWindow.superDispatchTouchEvent
      1. com.android.internal.policy.impl.PhoneWindow$DecorView.superDispatchTouchEvent(PhoneWindow.java:2369)
      2. com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1719)
      2 frames
    5. Android Platform
      Activity.dispatchTouchEvent
      1. android.app.Activity.dispatchTouchEvent(Activity.java:2742)
      1 frame
    6. Android
      PhoneWindow$DecorView.dispatchTouchEvent
      1. com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchTouchEvent(PhoneWindow.java:2330)
      1 frame
    7. Android Platform
      ActivityThread.main
      1. android.view.View.dispatchPointerEvent(View.java:8666)
      2. android.view.ViewRootImpl$ViewPostImeInputStage.processPointerEvent(ViewRootImpl.java:4123)
      3. android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:3989)
      4. android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3544)
      5. android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3597)
      6. android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3563)
      7. android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:3680)
      8. android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:3571)
      9. android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:3737)
      10. android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3544)
      11. android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3597)
      12. android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3563)
      13. android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:3571)
      14. android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3544)
      15. android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:5807)
      16. android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:5781)
      17. android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:5752)
      18. android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent(ViewRootImpl.java:5897)
      19. android.view.InputEventReceiver.dispatchInputEvent(InputEventReceiver.java:185)
      20. android.os.MessageQueue.nativePollOnce(Native Method)
      21. android.os.MessageQueue.next(MessageQueue.java:143)
      22. android.os.Looper.loop(Looper.java:122)
      23. android.app.ActivityThread.main(ActivityThread.java:5254)
      23 frames
    8. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Native Method)
      2. java.lang.reflect.Method.invoke(Method.java:372)
      2 frames
    9. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)
      2 frames