Android 8.0 Oreo crash on focusing TextInputEditText -
after updating of our devices android 8.0 , upon focusing on textinputedittext
field inside of textinputlayout
, app crashes exception
:
fatal exception: java.lang.nullpointerexception: attempt invoke virtual method 'void android.view.view.getboundsonscreen(android.graphics.rect)' on null object reference @ android.app.assist.assiststructure$windownode.(assiststructure.java) @ android.app.assist.assiststructure.(assiststructure.java) @ android.app.activitythread.handlerequestassistcontextextras(activitythread.java:3035) @ android.app.activitythread$h.handlemessage(activitythread.java:1807) @ android.os.handler.dispatchmessage(handler.java:105) @ android.os.looper.loop(looper.java:164) @ android.app.activitythread.main(activitythread.java:6541) @ java.lang.reflect.method.invoke(method.java) @ com.android.internal.os.zygote$methodandargscaller.run(zygote.java:240) @ com.android.internal.os.zygoteinit.main(zygoteinit.java:767)
when go android settings -> system -> languages & input -> advanced -> auto-fill service -> none , focusing on textinputedittext
/
textinputlayout
no longer crashes.
how can prevent crash happening without having disable new 8.0 auto-fill service on devices?
add below mentioned attribute in edittext
:
android:importantforautofill="noexcludedescendants"
wiki
Comments
Post a Comment