dankito / DeepThought

A knowledge management application for Android and Java
4 stars 1 forks source link

Floating button close behavior on rotate / resume #32

Closed b3nk4n closed 6 years ago

b3nk4n commented 6 years ago

Minor issue, but the behavior of the floating buttons (open state when all items are shown) is different regarding app resume and screen rotate:

Actual behavior

Expected I personally would expect it the other way round:

Or at least that is behaves the same: that the buttons are closed (not visible)

dankito commented 6 years ago

Absolutely true for the second case: After rotating screen the floating action button should be in the same state as before.

It just is impossible to distinguish in onResume() if onResume() has been called due screen rotation or if resuming activity otherwise. So don't know how to solve first case.

dankito commented 6 years ago

Fixed it, state will now get restored after rotating.