10BC0 NoSuchFieldException in EntryRenderer · Issue #456 · Baseflow/XF-Material-Library · GitHub
[go: up one dir, main page]

Skip to content

NoSuchFieldException in EntryRenderer #456

@ganyuss

Description

@ganyuss

🐛 Bug Report

When building an Android app targetting API 29 or higher, MaterialEntryRenderer fails to get the mCursorDrawableRes field from android.widget.TextView, as it has been blacklisted.

var field = Java.Lang.Class.FromType(typeof(Android.Widget.TextView)).GetDeclaredField("mCursorDrawableRes");

I guess it also break the cursor colour change, but I haven't tested that.

I found this issue here with the exact same problem, and a proposed solution.

Expected behavior

The code should not throw a NoSuchFieldException here.

Reproduction steps

Create a project with a MaterialLabel, and the Android target API >= 29. Then run it in debug mode (I am using Rider). An exception should be caught by the debugger.

Configuration

Version: 1.8.0

Platform:

  • 📱 iOS
  • 🤖 Android
  • 🏁 WPF
  • 🌎 UWP
  • 🍎 MacOS
  • 📺 tvOS
  • 🐒 Xamarin.Forms

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0