hcbpassos / waterfall-toolbar

MIT License
288 stars 22 forks source link

Elevation is reset when changing screen orientation #3

Closed hcbpassos closed 6 years ago

tcqq commented 6 years ago

Hi, is this problem fixed?

hcbpassos commented 6 years ago

@TCQQ Not yet.

https://stackoverflow.com/questions/3542333/how-to-prevent-custom-views-from-losing-state-across-screen-orientation-changes/3542895#3542895

I tried the solution provided by this question, but for some reason my view restores the state twice, so the first one, which is the correct elevation, gets overridden. I'm probably going to look this over next week.

tcqq commented 6 years ago

Ok.

hcbpassos commented 6 years ago

@TCQQ Giving a fast look into the code, I found the problem and fixed it.

tcqq commented 6 years ago

Thankyou.

hcbpassos commented 6 years ago

It's my pleasure :)