android: Use Fragment class from the support library to avoid deprecation warnings
authorTobias Brunner <tobias@strongswan.org>
Thu, 28 Apr 2016 07:21:06 +0000 (09:21 +0200)
committerTobias Brunner <tobias@strongswan.org>
Mon, 2 May 2016 14:41:50 +0000 (16:41 +0200)
commit7c5fec3a5a9a62a5c42d20c5347196f58909fd7c
treeebd98901b18be7ebcd64859cd75072998ce9aa4e
parent3256fe9ebb0c530a2ecf4ac977a32c8e099dc3ca
android: Use Fragment class from the support library to avoid deprecation warnings

For instance, onAttach() with an Activitiy as first argument was deprecated
with API level 23.  However, the overload with a Context as first argument
does obviously not get called on older API levels.  Luckily, the classes
provided by the support library handle that for us.
src/frontends/android/app/src/main/java/org/strongswan/android/ui/ImcStateFragment.java
src/frontends/android/app/src/main/java/org/strongswan/android/ui/LogFragment.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/RemediationInstructionFragment.java
src/frontends/android/app/src/main/java/org/strongswan/android/ui/RemediationInstructionsActivity.java
src/frontends/android/app/src/main/java/org/strongswan/android/ui/RemediationInstructionsFragment.java
src/frontends/android/app/src/main/java/org/strongswan/android/ui/VpnProfileListFragment.java
src/frontends/android/app/src/main/java/org/strongswan/android/ui/VpnStateFragment.java