]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
android: Suppress deprecation warning because of startActivityAndCollapse()
authorTobias Brunner <tobias@strongswan.org>
Wed, 5 Feb 2025 16:00:25 +0000 (17:00 +0100)
committerTobias Brunner <tobias@strongswan.org>
Tue, 18 Feb 2025 13:12:43 +0000 (14:12 +0100)
src/frontends/android/app/src/main/java/org/strongswan/android/ui/VpnTileService.java

index 05c3e2da9ed301ff26e236628e36728f40e47710..6f95a626aa9ba4900e44cfff9ab16134674f2c93 100644 (file)
@@ -187,7 +187,7 @@ public class VpnTileService extends TileService implements VpnStateService.VpnSt
                                        }
                                        else
                                        {
-                                               startActivityAndCollapse(intent);
+                                               startActivityAndCollapseCompat(intent);
                                        }
                                }
                                else
@@ -214,10 +214,16 @@ public class VpnTileService extends TileService implements VpnStateService.VpnSt
                }
                else
                {
-                       startActivityAndCollapse(intent);
+                       startActivityAndCollapseCompat(intent);
                }
        }
 
+       @SuppressWarnings("deprecation")
+       private void startActivityAndCollapseCompat(Intent intent)
+       {
+               startActivityAndCollapse(intent);
+       }
+
        @Override
        public void stateChanged()
        {