android: Move annotation to method where startActivityAndCollapse() is called

Fixes: 5237bf3a5c ("android: Suppress deprecation warning because of startActivityAndCollapse()")
This commit is contained in:
Tobias Brunner
2025-02-20 11:59:55 +01:00
parent b93141985b
commit e4d6bcef48
@@ -130,7 +130,6 @@ public class VpnTileService extends TileService implements VpnStateService.VpnSt
return mDataSource != null ? mDataSource.getVpnProfile(uuid) : null; return mDataSource != null ? mDataSource.getVpnProfile(uuid) : null;
} }
@SuppressLint("StartActivityAndCollapseDeprecated")
@Override @Override
public void onClick() public void onClick()
{ {
@@ -219,6 +218,7 @@ public class VpnTileService extends TileService implements VpnStateService.VpnSt
} }
@SuppressWarnings("deprecation") @SuppressWarnings("deprecation")
@SuppressLint("StartActivityAndCollapseDeprecated")
private void startActivityAndCollapseCompat(Intent intent) private void startActivityAndCollapseCompat(Intent intent)
{ {
startActivityAndCollapse(intent); startActivityAndCollapse(intent);