[TMP] Completely kill app instead of activity only

Since v0.21.0 release, the (Message)ColorProvider seems to keep an
outdated context, so upon theme change, the color doesn't update.
As a workaround until a better solution is found, kill the complete
process to enforce new context references everywhere.
This commit is contained in:
SpiritCroc 2020-06-05 17:56:07 +02:00
parent bab3916e3f
commit 2cba0430e6

View file

@ -188,7 +188,8 @@ abstract class VectorBaseActivity : AppCompatActivity(), HasScreenInjector {
if (!it.hasBeenHandled) {
// Recreate the Activity because configuration has changed
startActivity(intent)
finish()
//finish()
Runtime.getRuntime().exit(0)
}
})