{"action":"closed","issue":{"url":"https://api.github.com/repos/firebase/FirebaseUI-Android/issues/779","repository_url":"https://api.github.com/repos/firebase/FirebaseUI-Android","labels_url":"https://api.github.com/repos/firebase/FirebaseUI-Android/issues/779/labels{/name}","comments_url":"https://api.github.com/repos/firebase/FirebaseUI-Android/issues/779/comments","events_url":"https://api.github.com/repos/firebase/FirebaseUI-Android/issues/779/events","html_url":"https://github.com/firebase/FirebaseUI-Android/issues/779","id":239157350,"number":779,"title":"IndexOutOfBoundsException SpacedEditText.setSelection(SpacedEditText.java:82)","user":{"login":"krawa","id":4631330,"avatar_url":"https://avatars2.githubusercontent.com/u/4631330?v=4","gravatar_id":"","url":"https://api.github.com/users/krawa","html_url":"https://github.com/krawa","followers_url":"https://api.github.com/users/krawa/followers","following_url":"https://api.github.com/users/krawa/following{/other_user}","gists_url":"https://api.github.com/users/krawa/gists{/gist_id}","starred_url":"https://api.github.com/users/krawa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krawa/subscriptions","organizations_url":"https://api.github.com/users/krawa/orgs","repos_url":"https://api.github.com/users/krawa/repos","events_url":"https://api.github.com/users/krawa/events{/privacy}","received_events_url":"https://api.github.com/users/krawa/received_events","type":"User","site_admin":false},"labels":[{"id":417993157,"url":"https://api.github.com/repos/firebase/FirebaseUI-Android/labels/auth","name":"auth","color":"d4c5f9","default":false},{"id":234429615,"url":"https://api.github.com/repos/firebase/FirebaseUI-Android/labels/bug","name":"bug","color":"ee0701","default":true},{"id":310487736,"url":"https://api.github.com/repos/firebase/FirebaseUI-Android/labels/fix-implemented","name":"fix-implemented","color":"009800","default":false}],"state":"closed","locked":false,"assignee":{"login":"ashwinraghav","id":211174,"avatar_url":"https://avatars3.githubusercontent.com/u/211174?v=4","gravatar_id":"","url":"https://api.github.com/users/ashwinraghav","html_url":"https://github.com/ashwinraghav","followers_url":"https://api.github.com/users/ashwinraghav/followers","following_url":"https://api.github.com/users/ashwinraghav/following{/other_user}","gists_url":"https://api.github.com/users/ashwinraghav/gists{/gist_id}","starred_url":"https://api.github.com/users/ashwinraghav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ashwinraghav/subscriptions","organizations_url":"https://api.github.com/users/ashwinraghav/orgs","repos_url":"https://api.github.com/users/ashwinraghav/repos","events_url":"https://api.github.com/users/ashwinraghav/events{/privacy}","received_events_url":"https://api.github.com/users/ashwinraghav/received_events","type":"User","site_admin":false},"assignees":[{"login":"ashwinraghav","id":211174,"avatar_url":"https://avatars3.githubusercontent.com/u/211174?v=4","gravatar_id":"","url":"https://api.github.com/users/ashwinraghav","html_url":"https://github.com/ashwinraghav","followers_url":"https://api.github.com/users/ashwinraghav/followers","following_url":"https://api.github.com/users/ashwinraghav/following{/other_user}","gists_url":"https://api.github.com/users/ashwinraghav/gists{/gist_id}","starred_url":"https://api.github.com/users/ashwinraghav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ashwinraghav/subscriptions","organizations_url":"https://api.github.com/users/ashwinraghav/orgs","repos_url":"https://api.github.com/users/ashwinraghav/repos","events_url":"https://api.github.com/users/ashwinraghav/events{/privacy}","received_events_url":"https://api.github.com/users/ashwinraghav/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/firebase/FirebaseUI-Android/milestones/27","html_url":"https://github.com/firebase/FirebaseUI-Android/milestone/27","labels_url":"https://api.github.com/repos/firebase/FirebaseUI-Android/milestones/27/labels","id":3055954,"number":27,"title":"3.2.2","description":"","creator":{"login":"samtstern","id":8466666,"avatar_url":"https://avatars2.githubusercontent.com/u/8466666?v=4","gravatar_id":"","url":"https://api.github.com/users/samtstern","html_url":"https://github.com/samtstern","followers_url":"https://api.github.com/users/samtstern/followers","following_url":"https://api.github.com/users/samtstern/following{/other_user}","gists_url":"https://api.github.com/users/samtstern/gists{/gist_id}","starred_url":"https://api.github.com/users/samtstern/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samtstern/subscriptions","organizations_url":"https://api.github.com/users/samtstern/orgs","repos_url":"https://api.github.com/users/samtstern/repos","events_url":"https://api.github.com/users/samtstern/events{/privacy}","received_events_url":"https://api.github.com/users/samtstern/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":15,"state":"open","created_at":"2018-01-23T00:47:17Z","updated_at":"2018-02-27T18:14:03Z","due_on":null,"closed_at":null},"comments":9,"created_at":"2017-06-28T13:05:14Z","updated_at":"2018-02-27T18:14:03Z","closed_at":"2018-02-27T18:14:03Z","author_association":"NONE","body":"I get a lot of reports with this crash.\r\n\r\nfirebase-ui-auth:2.0.1\r\n\r\nAndroid 6.0\r\nLenovo VIBE K10 (K10a40)\r\nLenovo A6600 Plus (A6600a40) \r\n\r\nAndroid 5.0\r\nLenovo A5000 (A5000)\r\n\r\n```\r\njava.lang.IndexOutOfBoundsException: \r\n  at android.text.SpannableStringBuilder.checkRange(SpannableStringBuilder.java:1108)\r\n  at android.text.SpannableStringBuilder.setSpan(SpannableStringBuilder.java:680)\r\n  at android.text.SpannableStringBuilder.setSpan(SpannableStringBuilder.java:673)\r\n  at android.text.Selection.setSelection(Selection.java:76)\r\n  at android.text.Selection.setSelection(Selection.java:87)\r\n  at android.widget.EditText.setSelection(EditText.java:115)\r\n  at com.firebase.ui.auth.ui.phone.SpacedEditText.setSelection(SpacedEditText.java:82)\r\n  at android.widget.EditText.setText(EditText.java:99)\r\n  at com.firebase.ui.auth.ui.phone.SpacedEditText.setText(SpacedEditText.java:62)\r\n  at android.widget.TextView.setText(TextView.java:4222)\r\n  at com.firebase.ui.auth.ui.phone.SubmitConfirmationCodeFragment.setupConfirmationCodeEditText(SubmitConfirmationCodeFragment.java:192)\r\n  at com.firebase.ui.auth.ui.phone.SubmitConfirmationCodeFragment.onCreateView(SubmitConfirmationCodeFragment.java:88)\r\n  at android.support.v4.app.Fragment.performCreateView(Fragment.java:2192)\r\n  at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManagerImpl.java:1299)\r\n  at android.support.v4.app.FragmentManagerImpl.moveFragmentToExpectedState(FragmentManagerImpl.java:1528)\r\n  at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManagerImpl.java:1595)\r\n  at android.support.v4.app.BackStackRecord.executeOps(BackStackRecord.java:758)\r\n  at android.support.v4.app.FragmentManagerImpl.executeOps(FragmentManagerImpl.java:2363)\r\n  at android.support.v4.app.FragmentManagerImpl.executeOpsTogether(FragmentManagerImpl.java:2149)\r\n  at android.support.v4.app.FragmentManagerImpl.optimizeAndExecuteOps(FragmentManagerImpl.java:2103)\r\n  at android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManagerImpl.java:2013)\r\n  at android.support.v4.app.FragmentManagerImpl$1.run(FragmentManagerImpl.java:710)\r\n  at android.os.Handler.handleCallback(Handler.java:815)\r\n  at android.os.Handler.dispatchMessage(Handler.java:104)\r\n  at android.os.Looper.loop(Looper.java:207)\r\n  at android.app.ActivityThread.main(ActivityThread.java:5728)\r\n  at java.lang.reflect.Method.invoke(Method.java:0)\r\n  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:789)\r\n  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:679)\r\n\r\n```\r\nSame crash i got in Digits\r\n\r\n```\r\n\r\nCaused by: java.lang.IndexOutOfBoundsException: \r\n  at android.text.SpannableStringBuilder.checkRange(SpannableStringBuilder.java:1108)\r\n  at android.text.SpannableStringBuilder.setSpan(SpannableStringBuilder.java:680)\r\n  at android.text.SpannableStringBuilder.setSpan(SpannableStringBuilder.java:673)\r\n  at android.text.Selection.setSelection(Selection.java:76)\r\n  at android.text.Selection.setSelection(Selection.java:87)\r\n  at android.widget.EditText.setSelection(EditText.java:115)\r\n  at com.digits.sdk.android.SpacedEditText.setSelection(SpacedEditText.java:87)\r\n  at android.widget.EditText.setText(EditText.java:99)\r\n  at com.digits.sdk.android.SpacedEditText.setText(SpacedEditText.java:68)\r\n  at android.widget.TextView.setText(TextView.java:4222)\r\n  at com.digits.sdk.android.ConfirmationCodeActivityDelegate.setUpEditText(ConfirmationCodeActivityDelegate.java:144)\r\n  at com.digits.sdk.android.ConfirmationCodeActivityDelegate.init(ConfirmationCodeActivityDelegate.java:99)\r\n  at com.digits.sdk.android.DigitsActivity.onCreate(DigitsActivity.java:42)\r\n  at com.digits.sdk.android.ConfirmationCodeActivity.onCreate(ConfirmationCodeActivity.java:24)\r\n  at android.app.Activity.performCreate(Activity.java:6309)\r\n  at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1113)\r\n  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2519)\r\n\r\n```\r\n"}}
{"actor":{"display_login":"samtstern"}}