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

Nothing has bound to topping #11

Open
faizan321 opened this issue Oct 26, 2016 · 2 comments
Open

Nothing has bound to topping #11

faizan321 opened this issue Oct 26, 2016 · 2 comments

Comments

@faizan321
Copy link

when i use the method onAccentColorCicked(View view) compiler got crash on

Scoop.getInstance()
.update(Toppings.ACCENT, tintColor);

crash is:
java.security.InvalidParameterException: Nothing has been bound to the Topping of the given id (2).

onPrimaryDarkColorClicked(View view) and onPrimaryColorClicked(View view) method works fine.

@dhavalElite
Copy link

dhavalElite commented Dec 7, 2017

I have similar issue.
Other two working fine, but app crashes on click of selecting accent color

Error :
java.security.InvalidParameterException: Nothing has been bound to the Topping of the given id (2).

@attifmazhar
Copy link

InvalidParameterException is because does find Toppings.ACCENT id in mToppings in Scoop.update(-,-) and get solve by using bind Toppings.ACCENT to that views which want to change theme

Scoop.getInstance() .bind(this, Toppings.PRIMARY, toolbar) .bindStatusBar(this, Toppings.PRIMARY_DARK) .bind(this, Toppings.ACCENT, containerView1) .bind(this, Toppings.ACCENT, textView2);

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

3 participants