splitwise / TokenAutoComplete

Gmail style MultiAutoCompleteTextView for Android
Apache License 2.0
1.3k stars 383 forks source link

IndexOutOfBoundsException when focus changed and used setTokenLimit #171

Closed philwebservicesChris closed 8 years ago

philwebservicesChris commented 9 years ago

FATAL EXCEPTION: main 10-06 02:14:18.982 22568-22953/? E/AndroidRuntime: java.lang.IndexOutOfBoundsException: setSpan (4 ... 6) ends beyond length 5 10-06 02:14:18.982 22568-22953/? E/AndroidRuntime: at android.text.SpannableStringBuilder.checkRange(SpannableStringBuilder.java:1018) 10-06 02:14:18.982 22568-22953/? E/AndroidRuntime: at android.text.SpannableStringBuilder.setSpan(SpannableStringBuilder.java:611) 10-06 02:14:18.982 22568-22953/? E/AndroidRuntime: at android.text.SpannableStringBuilder.setSpan(SpannableStringBuilder.java:607) 10-06 02:14:18.982 22568-22953/? E/AndroidRuntime: at com.tokenautocomplete.TokenCompleteTextView.performCollapse(TokenCompleteTextView.java:645) 10-06 02:14:18.982 22568-22953/? E/AndroidRuntime: at com.tokenautocomplete.TokenCompleteTextView.onFocusChanged(TokenCompleteTextView.java:705)

mgod commented 9 years ago

It looks like you're not using 2.0.2. Can you update and see if you're still having the issue? I fixed some index issues in that update.

philwebservicesChris commented 9 years ago

I am also using 2.0.2 version but still facing the issue.

mgod commented 9 years ago

@philwebservicesChris can you post the 2.0.2 stack trace?

philwebservicesChris commented 9 years ago

10-07 21:07:45.485 3138-3138/com.android.. E/InputEventReceiver: Exception dispatching input event. 10-07 21:07:45.485 3138-3138/com.android.. E/MessageQueue-JNI: Exception in MessageQueue callback: handleReceiveCallback 10-07 21:07:45.486 3138-3138/com.android.. E/MessageQueue-JNI: java.lang.IndexOutOfBoundsException: setSpan (4 ... 6) ends beyond length 5 10-07 21:07:45.486 3138-3138/com.android.. E/MessageQueue-JNI: at android.text.SpannableStringBuilder.checkRange(SpannableStringBuilder.java:1018) 10-07 21:07:45.486 3138-3138/com.android.. E/MessageQueue-JNI: at android.text.SpannableStringBuilder.setSpan(SpannableStringBuilder.java:611) 10-07 21:07:45.486 3138-3138/com.android.. E/MessageQueue-JNI: at android.text.SpannableStringBuilder.setSpan(SpannableStringBuilder.java:607) 10-07 21:07:45.486 3138-3138/com.android.. E/MessageQueue-JNI: at com.tokenautocomplete.TokenCompleteTextView.performCollapse(TokenCompleteTextView.java:660) 10-07 21:07:45.486 3138-3138/com.android.. E/MessageQueue-JNI: at com.tokenautocomplete.TokenCompleteTextView.onFocusChanged(TokenCompleteTextView.java:720) 10-07 21:07:45.486 3138-3138/com.android.. E/MessageQueue-JNI: at android.view.View.clearFocusInternal(View.java:5089) 10-07 21:07:45.486 3138-3138/com.android.. E/MessageQueue-JNI: at android.view.View.unFocus(View.java:5122) 10-07 21:07:45.486 3138-3138/com.android.. E/MessageQueue-JNI: at android.view.ViewGroup.unFocus(ViewGroup.java:857) 10-07 21:07:45.486 3138-3138/com.android.. E/MessageQueue-JNI: at android.view.ViewGroup.requestChildFocus(ViewGroup.java:658) 10-07 21:07:45.486 3138-3138/com.android.. E/MessageQueue-JNI: at android.view.View.handleFocusGainInternal(View.java:4955) 10-07 21:07:45.486 3138-3138/com.android.. E/MessageQueue-JNI: at android.view.View.requestFocusNoSearch(View.java:7678) 10-07 21:07:45.486 3138-3138/com.android.. E/MessageQueue-JNI: at android.view.View.requestFocus(View.java:7657) 10-07 21:07:45.486 3138-3138/com.android.. E/MessageQueue-JNI: at android.view.View.requestFocus(View.java:7624) 10-07 21:07:45.486 3138-3138/com.android.. E/MessageQueue-JNI: at android.view.View.requestFocus(View.java:7603) 10-07 21:07:45.486 3138-3138/com.android.. E/MessageQueue-JNI: at android.view.View.onTouchEvent(View.java:9439) 10-07 21:07:45.486 3138-3138/com.android.. E/MessageQueue-JNI: at android.widget.TextView.onTouchEvent(TextView.java:7965) 10-07 21:07:45.486 3138-3138/com.android.. E/MessageQueue-JNI: at android.view.View.dispatchTouchEvent(View.java:8471) 10-07 21:07:45.486 3138-3138/com.android.. E/MessageQueue-JNI: at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2405) 10-07 21:07:45.486 3138-3138/com.android.. E/MessageQueue-JNI: at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2106) 10-07 21:07:45.486 3138-3138/com.android.. E/MessageQueue-JNI: at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2405) 10-07 21:07:45.486 3138-3138/com.android.. E/MessageQueue-JNI: at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2106) 10-07 21:07:45.486 3138-3138/com.android.. E/MessageQueue-JNI: at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2405) 10-07 21:07:45.486 3138-3138/com.android.. E/MessageQueue-JNI: at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2106) 10-07 21:07:45.486 3138-3138/com.android.. E/MessageQueue-JNI: at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2405) 10-07 21:07:45.486 3138-3138/com.android.. E/MessageQueue-JNI: at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2106) 10-07 21:07:45.486 3138-3138/com.android.. E/MessageQueue-JNI: at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2405) 10-07 21:07:45.486 3138-3138/com.android.. E/MessageQueue-JNI: at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2106) 10-07 21:07:45.486 3138-3138/com.android.. E/MessageQueue-JNI: at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2405) 10-07 21:07:45.486 3138-3138/com.android.. E/MessageQueue-JNI: at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2106) 10-07 21:07:45.486 3138-3138/com.android.. E/MessageQueue-JNI: at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2405) 10-07 21:07:45.486 3138-3138/com.android.. E/MessageQueue-JNI: at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2106) 10-07 21:07:45.486 3138-3138/com.android.. E/MessageQueue-JNI: at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2405) 10-07 21:07:45.486 3138-3138/com.android.. E/MessageQueue-JNI: at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2106) 10-07 21:07:45.486 3138-3138/com.android.. E/MessageQueue-JNI: at com.android.internal.policy.impl.PhoneWindow$DecorView.superDispatchTouchEvent(PhoneWindow.java:2369) 10-07 21:07:45.486 3138-3138/com.android.. E/MessageQueue-JNI: at com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1719) 10-07 21:07:45.486 3138-3138/com.android.. E/MessageQueue-JNI: at android.app.Activity.dispatchTouchEvent(Activity.java:2742) 10-07 21:07:45.486 3138-3138/com.android.. E/MessageQueue-JNI: at android.support.v7.internal.view.WindowCallbackWrapper.dispatchTouchEvent(WindowCallbackWrapper.java:60) 10-07 21:07:45.486 3138-3138/com.android.. E/MessageQueue-JNI: at android.support.v7.internal.view.WindowCallbackWrapper.dispatchTouchEvent(WindowCallbackWrapper.java:60) 10-07 21:07:45.486 3138-3138/com.android.. E/MessageQueue-JNI: at com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchTouchEvent(PhoneWindow.java:2330) 10-07 21:07:45.486 3138-3138/com.android.. E/MessageQueue-JNI: at android.view.View.dispatchPointerEvent(View.java:8666) 10-07 21:07:45.486 3138-3138/com.android.. E/MessageQueue-JNI: at android.view.ViewRootImpl$ViewPostImeInputStage.processPointerEvent(ViewRootImpl.java:4123) 10-07 21:07:45.486 3138-3138/com.android.. E/MessageQueue-JNI: at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:3989) 10-07 21:07:45.486 3138-3138/com.android.. E/MessageQueue-JNI: at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3544) 10-07 21:07:45.486 3138-3138/com.android.. E/MessageQueue-JNI: at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3597) 10-07 21:07:45.486 3138-3138/com.android.. E/MessageQueue-JNI: at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3563) 10-07 21:07:45.486 3138-3138/com.android.. E/MessageQueue-JNI: at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:3680) 10-07 21:07:45.486 3138-3138/com.android.. E/MessageQueue-JNI: at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:3571) 10-07 21:07:45.486 3138-3138/com.android.. E/MessageQueue-JNI: at android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:3737) 10-07 21:07:45.486 3138-3138/com.android.. E/MessageQueue-JNI: at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3544) 10-07 21:07:45.486 3138-3138/com.android.. E/MessageQueue-JNI: at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3597) 10-07 21:07:45.486 3138-3138/com.android.. E/MessageQueue-JNI: at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3563) 10-07 21:07:45.486 3138-3138/com.android.. E/MessageQueue-JNI: at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:3571) 10-07 21:07:45.486 3138-3138/com.android.. E/MessageQueue-JNI: at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3544) 10-07 21:07:45.486 3138-3138/com.android.. E/MessageQueue-JNI: at android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:58 10-07 21:07:45.487 3138-3138/com.android.. D/AndroidRuntime: Shutting down VM 10-07 21:07:45.534 3138-3148/? I/art: Debugger is no longer active 10-07 21:07:45.565 3138-6251/? E/AndroidRuntime: FATAL EXCEPTION: main 10-07 21:07:45.565 3138-6251/? E/AndroidRuntime: Process: com.android.., PID: 3138 10-07 21:07:45.565 3138-6251/? E/AndroidRuntime: java.lang.IndexOutOfBoundsException: setSpan (4 ... 6) ends beyond length 5 10-07 21:07:45.565 3138-6251/? E/AndroidRuntime: at android.text.SpannableStringBuilder.checkRange(SpannableStringBuilder.java:1018) 10-07 21:07:45.565 3138-6251/? E/AndroidRuntime: at android.text.SpannableStringBuilder.setSpan(SpannableStringBuilder.java:611) 10-07 21:07:45.565 3138-6251/? E/AndroidRuntime: at android.text.SpannableStringBuilder.setSpan(SpannableStringBuilder.java:607) 10-07 21:07:45.565 3138-6251/? E/AndroidRuntime: at com.tokenautocomplete.TokenCompleteTextView.performCollapse(TokenCompleteTextView.java:660) 10-07 21:07:45.565 3138-6251/? E/AndroidRuntime: at com.tokenautocomplete.TokenCompleteTextView.onFocusChanged(TokenCompleteTextView.java:720) 10-07 21:07:45.565 3138-6251/? E/AndroidRuntime: at android.view.View.clearFocusInternal(View.java:5089) 10-07 21:07:45.565 3138-6251/? E/AndroidRuntime: at android.view.View.unFocus(View.java:5122) 10-07 21:07:45.565 3138-6251/? E/AndroidRuntime: at android.view.ViewGroup.unFocus(ViewGroup.java:857) 10-07 21:07:45.565 3138-6251/? E/AndroidRuntime: at android.view.ViewGroup.requestChildFocus(ViewGroup.java:658) 10-07 21:07:45.565 3138-6251/? E/AndroidRuntime: at android.view.View.handleFocusGainInternal(View.java:4955) 10-07 21:07:45.565 3138-6251/? E/AndroidRuntime: at android.view.View.requestFocusNoSearch(View.java:7678) 10-07 21:07:45.565 3138-6251/? E/AndroidRuntime: at android.view.View.requestFocus(View.java:7657) 10-07 21:07:45.565 3138-6251/? E/AndroidRuntime: at android.view.View.requestFocus(View.java:7624) 10-07 21:07:45.565 3138-6251/? E/AndroidRuntime: at android.view.View.requestFocus(View.java:7603) 10-07 21:07:45.565 3138-6251/? E/AndroidRuntime: at android.view.View.onTouchEvent(View.java:9439) 10-07 21:07:45.565 3138-6251/? E/AndroidRuntime: at android.widget.TextView.onTouchEvent(TextView.java:7965) 10-07 21:07:45.565 3138-6251/? E/AndroidRuntime: at android.view.View.dispatchTouchEvent(View.java:8471) 10-07 21:07:45.565 3138-6251/? E/AndroidRuntime: at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2405) 10-07 21:07:45.565 3138-6251/? E/AndroidRuntime: at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2106) 10-07 21:07:45.565 3138-6251/? E/AndroidRuntime: at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2405) 10-07 21:07:45.565 3138-6251/? E/AndroidRuntime: at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2106) 10-07 21:07:45.565 3138-6251/? E/AndroidRuntime: at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2405) 10-07 21:07:45.565 3138-6251/? E/AndroidRuntime: at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2106) 10-07 21:07:45.565 3138-6251/? E/AndroidRuntime: at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2405) 10-07 21:07:45.565 3138-6251/? E/AndroidRuntime: at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2106) 10-07 21:07:45.565 3138-6251/? E/AndroidRuntime: at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2405) 10-07 21:07:45.565 3138-6251/? E/AndroidRuntime: at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2106) 10-07 21:07:45.565 3138-6251/? E/AndroidRuntime: at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2405) 10-07 21:07:45.565 3138-6251/? E/AndroidRuntime: at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2106) 10-07 21:07:45.565 3138-6251/? E/AndroidRuntime: at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2405) 10-07 21:07:45.565 3138-6251/? E/AndroidRuntime: at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2106) 10-07 21:07:45.565 3138-6251/? E/AndroidRuntime: at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2405) 10-07 21:07:45.565 3138-6251/? E/AndroidRuntime: at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2106) 10-07 21:07:45.565 3138-6251/? E/AndroidRuntime: at com.android.internal.policy.impl.PhoneWindow$DecorView.superDispatchTouchEvent(PhoneWindow.java:2369) 10-07 21:07:45.565 3138-6251/? E/AndroidRuntime: at com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1719) 10-07 21:07:45.565 3138-6251/? E/AndroidRuntime: at android.app.Activity.dispatchTouchEvent(Activity.java:2742) 10-07 21:07:45.565 3138-6251/? E/AndroidRuntime: at android.support.v7.internal.view.WindowCallbackWrapper.dispatchTouchEvent(WindowCallbackWrapper.java:60) 10-07 21:07:45.565 3138-6251/? E/AndroidRuntime: at android.support.v7.internal.view.WindowCallbackWrapper.dispatchTouchEvent(WindowCallbackWrapper.java:60) 10-07 21:07:45.565 3138-6251/? E/AndroidRuntime: at com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchTouchEvent(PhoneWindow.java:2330) 10-07 21:07:45.565 3138-6251/? E/AndroidRuntime: at android.view.View.dispatchPointerEvent(View.java:8666) 10-07 21:07:45.565 3138-6251/? E/AndroidRuntime: at android.view.ViewRootImpl$ViewPostImeInputStage.processPointerEvent(ViewRootImpl.java:4123) 10-07 21:07:45.565 3138-6251/? E/AndroidRuntime: at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:3989) 10-07 21:07:45.565 3138-6251/? E/AndroidRuntime: at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3544) 10-07 21:07:45.565 3138-6251/? E/AndroidRuntime: at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3597) 10-07 21:07:45.565 3138-6251/? E/AndroidRuntime: at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3563) 10-07 21:07:45.565 3138-6251/? E/AndroidRuntime: at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:3680) 10-07 21:07:45.565 3138-6251/? E/AndroidRuntime: at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:3571) 10-07 21:07:45.565 3138-6251/? E/AndroidRuntime: at android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:3737) 10-07 21:07:45.565 3138-6251/? E/AndroidRuntime: at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3544) 10-07 21:07:45.565 3138-6251/? E/AndroidRuntime: at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3597) 10-07 21:07:45.565 3138-6251/? E/AndroidRuntime: at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3563) 10-07 21:07:45.565 3138-6251/? E/AndroidRuntime: at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:3571) 10-07 21:07:45.565 3138-6251/? E/AndroidRuntime: at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3544) 10-07 21:07:45.565 3138-6251/? E/AndroidRuntime: a

philwebservicesChris commented 9 years ago

Does this issue solved?

togikan commented 8 years ago

Same issue while restoring view in fragment after onActivityCreated()

mgod commented 8 years ago

I think this has been fixed in 2.0.3. Please let me know if you're still seeing it after you update.

radubn commented 8 years ago

Hi. The token limit is 3, whenever I have 3 items that won't fit in the screen and I click outside the TokenCompleteTextView, I get it:

E/MessageQueue-JNI: Exception in MessageQueue callback: handleReceiveCallback E/MessageQueue-JNI: java.lang.IndexOutOfBoundsException: replace (8 ... 8) ends beyond length 7 at android.text.SpannableStringBuilder.checkRange(SpannableStringBuilder.java:1022) at android.text.SpannableStringBuilder.replace(SpannableStringBuilder.java:462) at android.text.SpannableStringBuilder.insert(SpannableStringBuilder.java:211) at android.text.SpannableStringBuilder.insert(SpannableStringBuilder.java:33) at com.tokenautocomplete.TokenCompleteTextView.performCollapse(TokenCompleteTextView.java:663) at com.tokenautocomplete.TokenCompleteTextView.onFocusChanged(TokenCompleteTextView.java:741) at android.view.View.clearFocusInternal(View.java:5516) at android.view.View.unFocus(View.java:5549) at android.view.ViewGroup.unFocus(ViewGroup.java:978) at android.view.ViewGroup.requestChildFocus(ViewGroup.java:668) at android.view.View.handleFocusGainInternal(View.java:5381) at android.view.View.requestFocusNoSearch(View.java:8131) at android.view.View.requestFocus(View.java:8110) at android.view.View.requestFocus(View.java:8077) at android.view.View.requestFocus(View.java:8056) at android.view.View.onTouchEvent(View.java:10359) at android.widget.TextView.onTouchEvent(TextView.java:9548) at android.view.View.dispatchTouchEvent(View.java:8981) at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2709) at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2425) at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2709) at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2425) at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2709) at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2425) at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2709) at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2425) at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2709) at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2425) at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2709) at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2425) at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2709) at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2425) at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2709) at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2425) at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2709) at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2425) at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2709) at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2425) at com.android.internal.policy.impl.PhoneWindow$DecorView.superDispatchTouchEvent(PhoneWindow.java:2568) at com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1776) at android.app.Dialog.dispatchTouchEvent(Dialog.java:866) at android.support.v7.view.WindowCallbackWrapper.dispatchTouchEvent(WindowCallbackWrapper.java:60) at com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchTouchEvent(PhoneWindow.java:2529) at android.view.View.dispatchPointerEvent(View.java:9186) at android.view.ViewRootImpl$ViewPostImeInputStage.processPointerEvent(ViewRootImpl.java:4706) at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:4544) at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4068) at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:4121) at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:4087) at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:4201) at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:4095) at android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:4258) at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4068) at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:4121) at android.view.ViewRootImpl$InputStag

version 2.0.3

Samsung Galaxy S4, api 21 (5.0.1)