Android: use correct size when leaving fullscreen
authorPaul Olav Tvete <paul.tvete@digia.com>
Wed, 20 Aug 2014 10:21:30 +0000 (12:21 +0200)
committerPaul Olav Tvete <paul.tvete@digia.com>
Wed, 20 Aug 2014 16:38:18 +0000 (18:38 +0200)
commit8688dfcd7ce148a8e7fcd16521d458417eadcbf8
tree4f61ae37ba7901dbd1bb2f00eae5c436c304b1e0
parent9b11f0bac8f4a6b3c0b960e40bf74830eb5c1056
Android: use correct size when leaving fullscreen

On Android, fullscreen means enabling "immersive mode", which
results in the screen available geometry changing. When restoring
normal mode, oldAvailableGeometry == oldGeometry, which means that
the fullscreen branch would be chosen even though the state is not
fullscreen. By doing the maximized test first, we will default to
non-fullscreen geometry for non-fullscreen windows.

Task-number: QTBUG-39977
Change-Id: Ifc7e8b4de7e96d8c00603ce0cd136b95f58012bb
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>
src/gui/kernel/qplatformscreen.cpp