-
Notifications
You must be signed in to change notification settings - Fork 113
Huawei device with Android 9 throws java.lang.NoSuchFieldException while calling reflect() #4
Comments
Oh wow! Did not expect OEMs to modify the Editor class, but then relying on reflection wasn't supposed to be foolproof. It might be a better idea to set |
Wanna send a PR with a fix @Navneet7k, along the lines of how the cursor color is overridden? |
Whoops my bad. Your device is running on Android 9 so this issue isn't fixed yet. |
hi, couldn't reply yesterday, is this fixed |
That sounds very suspicious 😄 It looks like there might be a way to set the handles from Xml: https://stackoverflow.com/a/15133928/2511884. Press could intercept the |
Look at Danil. B and Jared Rummler answers here: https://stackoverflow.com/questions/15133926/how-to-change-color-appearance-of-edittext-select-handle-anchor/63121585#63121585 |
That looks exactly what I'm doing currently: https://github.com/saket/press/blob/master/androidApp/src/main/java/press/theme/TextViewCompat.kt |
Can someone check if they're still running into this crash with Press v1.7.0? |
This produces the following exception :
java.lang.NoSuchFieldException: No field mSelectHandleCenter in class Lhuawei/com/android/internal/widget/HwEditor; (declaration of 'huawei.com.android.internal.widget.HwEditor' appears in /system/framework/hwEmui.jar)
The text was updated successfully, but these errors were encountered: