From 2cba0430e69373a8a400f1f48cdcb572daa690cd Mon Sep 17 00:00:00 2001 From: SpiritCroc Date: Fri, 5 Jun 2020 17:56:07 +0200 Subject: [PATCH] [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. --- .../java/im/vector/riotx/core/platform/VectorBaseActivity.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vector/src/main/java/im/vector/riotx/core/platform/VectorBaseActivity.kt b/vector/src/main/java/im/vector/riotx/core/platform/VectorBaseActivity.kt index 770a63a3fa..e041741ffe 100644 --- a/vector/src/main/java/im/vector/riotx/core/platform/VectorBaseActivity.kt +++ b/vector/src/main/java/im/vector/riotx/core/platform/VectorBaseActivity.kt @@ -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) } })