garretyoder / Colorful

Android runtime theme library
Apache License 2.0
2.13k stars 193 forks source link

Usage in custom activity #25

Closed MFlisar closed 6 years ago

MFlisar commented 6 years ago

In a custom activity I have to call Colorful().apply(this, override = true, appcompat = false) in onCreate. I'm missing the delegate for the onResume call like the example here has it: https://github.com/garretyoder/Colorful/blob/master/library/src/main/java/io/multimoon/colorful/CAppCompatActivity.kt

This is necessary in a custom activity as well, isn't it?

garretyoder commented 6 years ago

There's a Colorful().hasChanged() method slated for 2.1 that will resolve this issue. 2.1 is scheduled for release this weekend.