garretyoder / Colorful

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

startSupportActionMode works not propertly with Colorful #47

Open iq1 opened 5 years ago

iq1 commented 5 years ago

I have added Colorful library into my app and ActionMode is broken now. Action toolbar appears above the toolbar. Looks like Colorful style doesn't have or ignore my windowActionModeOverlay.

Library initialized as:

 CustomThemeColor defaultTheme = new CustomThemeColor(
                this,
                R.style.my_default_primary_color,
                R.style.my_default_rimary_dark_color,
                R.color.colorPrimary,
                R.color.colorPrimary
        );
        Defaults themeDefaults = new Defaults(
                defaultTheme,
                defaultTheme,
                false,
                false,
                R.style.AppTheme
        );
        initColorful(this, themeDefaults);

Activity extends CAppCompatActivity. But startSupportActionMode leads to this: screen

Do you know how to fix this?