]> git.ipfire.org Git - thirdparty/strongswan.git/commit
android: Avoid crash related to TileService on Huawei devices
authorTobias Brunner <tobias@strongswan.org>
Fri, 16 Aug 2019 15:04:28 +0000 (17:04 +0200)
committerTobias Brunner <tobias@strongswan.org>
Mon, 26 Aug 2019 09:28:16 +0000 (11:28 +0200)
commit3716af079e2133d04ba569d2d8e07838874d0414
tree3ffe6ed1cd64ae231b228424fea2b9dd71cd6062
parent8af50736e12431da4bf7254c4f70ad5823b65364
android: Avoid crash related to TileService on Huawei devices

No idea when exactly this happens but on many Huawei devices (and
only on them) it seems that onStartListening is sometimes called after
onDestroy i.e. when the database was already closed.  This caused an
InvalidStateException in getProfile via updateTile when retrieving the
current profile.  It's possible that it happens during shutdown (there
have been similar reports related to TileService implementations) so
users might not even notice, but it pollutes the Play Console, so this
workaround now makes sure the database is open when updateTile is called.
src/frontends/android/app/src/main/java/org/strongswan/android/ui/VpnTileService.java