]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
android: Move annotation to method where startActivityAndCollapse() is called
authorTobias Brunner <tobias@strongswan.org>
Thu, 20 Feb 2025 10:58:38 +0000 (11:58 +0100)
committerTobias Brunner <tobias@strongswan.org>
Thu, 20 Feb 2025 10:59:55 +0000 (11:59 +0100)
Fixes: 5237bf3a5c6f ("android: Suppress deprecation warning because of startActivityAndCollapse()")
src/frontends/android/app/src/main/java/org/strongswan/android/ui/VpnTileService.java

index 6f95a626aa9ba4900e44cfff9ab16134674f2c93..9b310f050d01ebcca6f762ad37fdd47aefbdef97 100644 (file)
@@ -130,7 +130,6 @@ public class VpnTileService extends TileService implements VpnStateService.VpnSt
                return mDataSource != null ? mDataSource.getVpnProfile(uuid) : null;
        }
 
-       @SuppressLint("StartActivityAndCollapseDeprecated")
        @Override
        public void onClick()
        {
@@ -219,6 +218,7 @@ public class VpnTileService extends TileService implements VpnStateService.VpnSt
        }
 
        @SuppressWarnings("deprecation")
+       @SuppressLint("StartActivityAndCollapseDeprecated")
        private void startActivityAndCollapseCompat(Intent intent)
        {
                startActivityAndCollapse(intent);