]> git.ipfire.org Git - thirdparty/strongswan.git/commit
android: Prevent illegalStateException when showing power whitelist dialog
authorTobias Brunner <tobias@strongswan.org>
Mon, 19 Oct 2020 15:41:52 +0000 (17:41 +0200)
committerTobias Brunner <tobias@strongswan.org>
Thu, 29 Oct 2020 09:22:52 +0000 (10:22 +0100)
commit80337f4f9d3d189b05b171db7f1d57a08cbfc7fa
treeb228552405b993d7439c1dfb5e0dac084df49ace
parent264435f626b0eee97587cad455770d427ccb4836
android: Prevent illegalStateException when showing power whitelist dialog

If the activity is not active when the service connection is
established and handleIntent() is called, the activity's state is already
saved and any fragment transaction would result in an illegalStateException
due to state loss.  We just ignore this and wait for another initiation
attempt (via onNewIntent()).
src/frontends/android/app/src/main/java/org/strongswan/android/ui/VpnProfileControlActivity.java