Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accessing hidden field violation #77

Open
ihuman15 opened this issue Apr 1, 2020 · 1 comment
Open

Accessing hidden field violation #77

ihuman15 opened this issue Apr 1, 2020 · 1 comment

Comments

@ihuman15
Copy link

ihuman15 commented Apr 1, 2020

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.

@bhavanimogili
Copy link

Hi is there a solution for this problem yet?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants