tgkill - native error on Android 8.0 Samsung S8

后端 未结 2 1141
遥遥无期
遥遥无期 2020-12-30 02:43

Recently I started getting Android native crashes (reported in Google Play vitals). They happen only on Samsung Galaxy S8 or S8+ phones with Android 8.

According to

2条回答
  •  离开以前
    2020-12-30 03:37

    This problem seems to be restricted to Samsung devices with Android 8.0, it is some bug about text selection and/or entering text and/or closing a dialog containing EditTexts and/or rotating the screen.

    It seems that there is a workaround. Create a xml file in the res/drawable folder defining an empty shape, as follows.

    
    
    
    
    

    In the layout file, add the following attributes to the EditTexts:

    android:textSelectHandle="@drawable/empty"
    android:textSelectHandleRight="@drawable/empty"
    android:textSelectHandleLeft="@drawable/empty"
    

    source: Samsung developers forum crash Samsung Galaxy S8 libhwui.so

提交回复
热议问题