-
Notifications
You must be signed in to change notification settings - Fork 837
Closed
Labels
difficulty/medium 🤔Categorizes an issue for which the difficulty level is reachable with a good understanding of WinUICategorizes an issue for which the difficulty level is reachable with a good understanding of WinUIkind/bugSomething isn't workingSomething isn't workingplatform/android 🤖Categorizes an issue or PR as relevant to the Android platformCategorizes an issue or PR as relevant to the Android platformproject/core-tools 🛠️Categorizes an issue or PR as relevant to core and toolsCategorizes an issue or PR as relevant to core and tools
Description
Current behavior
an exception thrown on access:
Accessing hidden field Landroid/widget/TextView;->mCursorDrawableRes:I (greylist-max-p, reflection, denied) **Java.Lang.NoSuchFieldException:** 'No field mCursorDrawableRes in class Landroid/widget/TextView; (declaration of 'android.widget.TextView' appears in /system/framework/framework.jar!classes3.dex)'
Summary
So
| _cursorDrawableResField = textViewClass.GetDeclaredField("mCursorDrawableRes"); |
This is referenced in #5491 however the PR does not remove the access to this field rather more error handling.
Officially I think the recommendation is: https://developer.android.com/reference/android/widget/TextView#setTextCursorDrawable(int) it was only added in v29 however I understand that is now the minimum version for uno anyway so could probably just swap over to using it exclusively.
Metadata
Metadata
Assignees
Labels
difficulty/medium 🤔Categorizes an issue for which the difficulty level is reachable with a good understanding of WinUICategorizes an issue for which the difficulty level is reachable with a good understanding of WinUIkind/bugSomething isn't workingSomething isn't workingplatform/android 🤖Categorizes an issue or PR as relevant to the Android platformCategorizes an issue or PR as relevant to the Android platformproject/core-tools 🛠️Categorizes an issue or PR as relevant to core and toolsCategorizes an issue or PR as relevant to core and tools