]> git.ipfire.org Git - thirdparty/strongswan.git/commit
android: Replace deprecated AsyncTask instances
authorTobias Brunner <tobias@strongswan.org>
Mon, 12 Jul 2021 15:58:16 +0000 (17:58 +0200)
committerTobias Brunner <tobias@strongswan.org>
Wed, 14 Jul 2021 07:59:02 +0000 (09:59 +0200)
commit26354d0aba4868a8f7571eb14ef75c13de5df324
tree28e5b60d917a9147826b14004cc076df0a216b24
parenta8cc1462407a792e8e6bc857a892394929416afb
android: Replace deprecated AsyncTask instances

As suggested by the Android docs, we use a global thread pool and handler
to avoid recreating them repeatedly.  Four threads should be more than
enough as we only use this to load CA certificates when the app starts
initially and to load user certs when editing a profile.
src/frontends/android/app/src/main/java/org/strongswan/android/logic/StrongSwanApplication.java
src/frontends/android/app/src/main/java/org/strongswan/android/ui/MainActivity.java
src/frontends/android/app/src/main/java/org/strongswan/android/ui/VpnProfileDetailActivity.java