mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-25 10:55:55 +03:00
[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:
parent
bab3916e3f
commit
2cba0430e6
1 changed files with 2 additions and 1 deletions
|
@ -188,7 +188,8 @@ abstract class VectorBaseActivity : AppCompatActivity(), HasScreenInjector {
|
||||||
if (!it.hasBeenHandled) {
|
if (!it.hasBeenHandled) {
|
||||||
// Recreate the Activity because configuration has changed
|
// Recreate the Activity because configuration has changed
|
||||||
startActivity(intent)
|
startActivity(intent)
|
||||||
finish()
|
//finish()
|
||||||
|
Runtime.getRuntime().exit(0)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue