summaryrefslogtreecommitdiffstats
path: root/examples/widgets/tutorials/widgets
diff options
context:
space:
mode:
authorAssam Boudjelthia <assam.boudjelthia@qt.io>2024-06-12 13:05:16 +0300
committerAssam Boudjelthia <assam.boudjelthia@qt.io>2024-06-13 13:29:24 +0000
commita0a2a8340a7e10e8db84773ed81a2cb3ba6ab2ba (patch)
tree782f962731c35a3bae0d01bc069120f51fd215d4 /examples/widgets/tutorials/widgets
parent1276bfca6c6ab142dc69c9a730a9723fb0f3c615 (diff)
Android: restart whole app if the activity was restarted6.7
If the Activity restart path is run while m_layout is null, it would lead to a NullPointerException when trying to access m_layout. Moreover, the code here doesn't make sense, as m_layout.getParent() should probably be only done when super.updateActivityAfterRestart() returns true because if it returns false, the app will be restarted anyway. Testing the restarting behavior of the Activity, it seems that the code code doesn't really work in bringing the app to a usable state after an activity restart, and this code path should be re-evaluated. Thus, I'm simplifying the logic to only restart the whole app, and later figure out a way to do a proper smooth transition instead. Fixes: QTBUG-124786 Change-Id: I79f0c53c815bf71c831d0b930f358c9fd820a2d4 Reviewed-by: Tinja Paavoseppä <tinja.paavoseppa@qt.io> (cherry picked from commit 7602f71aa6cd10ff1b16d154fa967c8fce8e8d0a) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> (cherry picked from commit fcae2b7f2d6d23bcdf83fad53509fdc07961de7a)
Diffstat (limited to 'examples/widgets/tutorials/widgets')
0 files changed, 0 insertions, 0 deletions