[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
|
@ -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)
|
||||
}
|
||||
})
|
||||
|
||||
|
|
Loading…
Reference in New Issue