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

Daynight theme support #238

Open
JasonHezz opened this issue Jun 1, 2017 · 1 comment
Open

Daynight theme support #238

JasonHezz opened this issue Jun 1, 2017 · 1 comment

Comments

@JasonHezz
Copy link

JasonHezz commented Jun 1, 2017

Switch to night mode ,floatingsearchview nothing changed and reopen app ,the floatingsearchview auto switch to night mode
here are some screenshot

normal state:
image

switch to night mode state:
image

reopen app:
image

arimorty added a commit that referenced this issue Jun 4, 2017
@JasonHezz
Copy link
Author

JasonHezz commented Jun 9, 2017

The new version still had the same issue , spend some time to investigate.According to Chris Banes AppCompat v23.2 — DayNight, the resources for day/night switching should not be restored by floatingsearchview. That's why switch to night mode state , the BackgroundColor still is white.

 @Override
  public void onRestoreInstanceState(Parcelable state) {
    .....
   // setBackgroundColor(savedState.backgroundColor);
  }

it works for me.

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

1 participant