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

Fixes: 5237bf3a5c6f ("android: Suppress deprecation warning because of startActivityAndCollapse()")
This commit is contained in:
Tobias Brunner 2025-02-20 11:58:38 +01:00
parent b93141985b
commit e4d6bcef48

View 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);