]> git.ktnx.net Git - mobile-ledger.git/commit
fix activity restart upon profile theme change
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Sat, 16 May 2020 10:14:13 +0000 (13:14 +0300)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Sat, 16 May 2020 10:14:13 +0000 (13:14 +0300)
commiteca29dbfd4cae7b051f79ce3cb93f7c55bf092aa
treea8889bf9c510cabcadeed9d15b9d32db729ec106
parentb4b28400c14f127e325a7e1195fd7b469e11381a
fix activity restart upon profile theme change

strangely, calling onSaveInstanceState at this time races with
some other thing reacting to the change making fragment manager
crash with "fragment transaction already in progress"

regardless, Actvity.recreate() is designed just for this job
app/src/main/java/net/ktnx/mobileledger/ui/activity/MainActivity.java