Closed mik3y closed 10 years ago
04-14 13:37:05.556 E/AndroidRuntime(25900): FATAL EXCEPTION: main 04-14 13:37:05.556 E/AndroidRuntime(25900): Process: org.kegbot.app, PID: 25900 04-14 13:37:05.556 E/AndroidRuntime(25900): java.lang.RuntimeException: Unable to resume activity {org.kegbot.app/org.kegbot.app.HomeActivity}: java.lang.RuntimeException: Could not dispatch event: class org.kegbot.app.event.TapListUpdateEvent to handler [EventHandler public void org.kegbot.app.HomeActivity.onTapListUpdate(org.kegbot.app.event.TapListUpdateEvent)] 04-14 13:37:05.556 E/AndroidRuntime(25900): at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2788) 04-14 13:37:05.556 E/AndroidRuntime(25900): at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:2817) 04-14 13:37:05.556 E/AndroidRuntime(25900): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1238) 04-14 13:37:05.556 E/AndroidRuntime(25900): at android.os.Handler.dispatchMessage(Handler.java:102) 04-14 13:37:05.556 E/AndroidRuntime(25900): at android.os.Looper.loop(Looper.java:136) 04-14 13:37:05.556 E/AndroidRuntime(25900): at android.app.ActivityThread.main(ActivityThread.java:5017) 04-14 13:37:05.556 E/AndroidRuntime(25900): at java.lang.reflect.Method.invokeNative(Native Method) 04-14 13:37:05.556 E/AndroidRuntime(25900): at java.lang.reflect.Method.invoke(Method.java:515) 04-14 13:37:05.556 E/AndroidRuntime(25900): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779) 04-14 13:37:05.556 E/AndroidRuntime(25900): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595) 04-14 13:37:05.556 E/AndroidRuntime(25900): at dalvik.system.NativeStart.main(Native Method) 04-14 13:37:05.556 E/AndroidRuntime(25900): Caused by: java.lang.RuntimeException: Could not dispatch event: class org.kegbot.app.event.TapListUpdateEvent to handler [EventHandler public void org.kegbot.app.HomeActivity.onTapListUpdate(org.kegbot.app.event.TapListUpdateEvent)] 04-14 13:37:05.556 E/AndroidRuntime(25900): at com.squareup.otto.Bus.throwRuntimeException(Bus.java:456) 04-14 13:37:05.556 E/AndroidRuntime(25900): at com.squareup.otto.Bus.dispatch(Bus.java:386) 04-14 13:37:05.556 E/AndroidRuntime(25900): at com.squareup.otto.Bus.dispatchProducerResultToHandler(Bus.java:252) 04-14 13:37:05.556 E/AndroidRuntime(25900): at com.squareup.otto.Bus.register(Bus.java:235) 04-14 13:37:05.556 E/AndroidRuntime(25900): at org.kegbot.app.HomeActivity.onResume(HomeActivity.java:182) 04-14 13:37:05.556 E/AndroidRuntime(25900): at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1192) 04-14 13:37:05.556 E/AndroidRuntime(25900): at android.app.Activity.performResume(Activity.java:5310) 04-14 13:37:05.556 E/AndroidRuntime(25900): at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2778) 04-14 13:37:05.556 E/AndroidRuntime(25900): ... 10 more 04-14 13:37:05.556 E/AndroidRuntime(25900): Caused by: java.lang.IllegalStateException: The application's PagerAdapter changed the adapter's contents without calling PagerAdapter#notifyDataSetChanged! Expected adapter item count: 4, found: 3 Pager id: org.kegbot.app:id/tap_status_pager Pager class: class android.support.v4.view.ViewPager Problematic adapter: class org.kegbot.app.HomeActivity$MyAdapter 04-14 13:37:05.556 E/AndroidRuntime(25900): at android.support.v4.view.ViewPager.populate(ViewPager.java:962) 04-14 13:37:05.556 E/AndroidRuntime(25900): at android.support.v4.view.ViewPager.setCurrentItemInternal(ViewPager.java:550) 04-14 13:37:05.556 E/AndroidRuntime(25900): at android.support.v4.view.ViewPager.setCurrentItemInternal(ViewPager.java:509) 04-14 13:37:05.556 E/AndroidRuntime(25900): at android.support.v4.view.ViewPager.setCurrentItem(ViewPager.java:490) 04-14 13:37:05.556 E/AndroidRuntime(25900): at org.kegbot.app.HomeActivity.onTapListUpdate(HomeActivity.java:249) 04-14 13:37:05.556 E/AndroidRuntime(25900): at java.lang.reflect.Method.invokeNative(Native Method) 04-14 13:37:05.556 E/AndroidRuntime(25900): at java.lang.reflect.Method.invoke(Method.java:515) 04-14 13:37:05.556 E/AndroidRuntime(25900): at com.squareup.otto.EventHandler.handleEvent(EventHandler.java:89) 04-14 13:37:05.556 E/AndroidRuntime(25900): at com.squareup.otto.Bus.dispatch(Bus.java:384) 04-14 13:37:05.556 E/AndroidRuntime(25900): ... 16 more 04-14 13:37:05.566 W/ActivityManager( 618): Force finishing activity org.kegbot.app/.HomeActivity
I think 682926f6969168822bcc38e8c8057310ecbff230 fixed this.