Open dbrant opened 5 years ago
...and when dragging a non-topmost tab, then invoking the app switcher, the stack trace looks like this:
java.lang.NullPointerException: Attempt to invoke virtual method 'android.view.ViewGroup$LayoutParams android.view.ViewGroup.getLayoutParams()' on a null object reference
at de.mrapp.android.tabswitcher.layout.phone.PhoneArithmetics.getTabContainerSize(PhoneArithmetics.java:201)
at de.mrapp.android.tabswitcher.layout.phone.PhoneTabSwitcherLayout.calculateSwipePosition(PhoneTabSwitcherLayout.java:377)
at de.mrapp.android.tabswitcher.layout.phone.PhoneTabSwitcherLayout.animateSwipe(PhoneTabSwitcherLayout.java:898)
at de.mrapp.android.tabswitcher.layout.phone.PhoneTabSwitcherLayout.animateRemove(PhoneTabSwitcherLayout.java:976)
at de.mrapp.android.tabswitcher.layout.phone.PhoneTabSwitcherLayout.access$1000(PhoneTabSwitcherLayout.java:79)
at de.mrapp.android.tabswitcher.layout.phone.PhoneTabSwitcherLayout$5.onGlobalLayout(PhoneTabSwitcherLayout.java:1288)
at de.mrapp.android.tabswitcher.layout.phone.PhoneTabSwitcherLayout$13.onGlobalLayout(PhoneTabSwitcherLayout.java:1632)
at de.mrapp.android.tabswitcher.layout.AbstractTabSwitcherLayout$LayoutListenerWrapper.onGlobalLayout(AbstractTabSwitcherLayout.java:134)
at android.view.ViewTreeObserver.dispatchOnGlobalLayout(ViewTreeObserver.java:945)
at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2250)
at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1392)
at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6752)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:911)
at android.view.Choreographer.doCallbacks(Choreographer.java:723)
at android.view.Choreographer.doFrame(Choreographer.java:658)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:897)
at android.os.Handler.handleCallback(Handler.java:790)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6494)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)
Unfortunately, I wasn't able to reproduce this issue so far...
Another crash in the series of "state save" issues: To reproduce, start dragging to dismiss the topmost tab, drag it past the 50% mark, and while still holding the tab, invoke the system app switcher.
Stack trace: