Skip to content

Accessing hidden field violation #77

@ihuman15

Description

@ihuman15

Hi @jaredrummler , I am facing issue using the library on Android 10.
When I set the colors in onCreate(...) before setContentView(...), the color is applied but the view keeps blinking.

override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)

        cyanea.edit {
            primary(Color.BLACK)
            accent(Color.BLUE)
        }

        setContentView(R.layout.activity_main)
        setSupportActionBar(toolbar)

        fab.setOnClickListener { view ->
            Snackbar.make(view, "Replace with your own action", Snackbar.LENGTH_LONG)
                .setAction("Action", null).show()
        }
    }

Below is the logs for the issue.

com.mobily.thememanager W/ly.thememanage: Accessing hidden field Landroid/graphics/drawable/GradientDrawable;->mGradientState:Landroid/graphics/drawable/GradientDrawable$GradientState; (greylist-max-p, reflection, denied)
com.mobily.thememanager W/ly.thememanage: Accessing hidden field Landroid/view/LayoutInflater;->mConstructorArgs:[Ljava/lang/Object; (greylist-max-p, reflection, denied)

Can I apply any solution or it needs to applied within the library?
I tried applying the command

adb shell settings put global hidden_api_policy  1

The logs are not shown anymore but still the view keeps blinking.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions