]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
android: Fix deprecation warning related to FragmentPagerAdapter
authorTobias Brunner <tobias@strongswan.org>
Tue, 8 Oct 2019 13:21:00 +0000 (15:21 +0200)
committerTobias Brunner <tobias@strongswan.org>
Tue, 15 Oct 2019 10:18:45 +0000 (12:18 +0200)
src/frontends/android/app/src/main/java/org/strongswan/android/ui/TrustedCertificatesActivity.java

index 2953790230db54ada5ac3399c38193861ea06c66..1c13a110f7506ca10208572cd07cee38fc92799b 100644 (file)
@@ -169,7 +169,7 @@ public class TrustedCertificatesActivity extends AppCompatActivity implements Tr
 
                public TrustedCertificatesPagerAdapter(FragmentManager fm, Context context)
                {
-                       super(fm);
+                       super(fm, BEHAVIOR_RESUME_ONLY_CURRENT_FRAGMENT);
                        mTabs = new TrustedCertificatesTab[]{
                                new TrustedCertificatesTab(context.getString(R.string.system_tab), TrustedCertificateSource.SYSTEM),
                                new TrustedCertificatesTab(context.getString(R.string.user_tab), TrustedCertificateSource.USER),