android: Move annotation to method where startActivityAndCollapse() is called
Fixes: 5237bf3a5c ("android: Suppress deprecation warning because of startActivityAndCollapse()")
This commit is contained in:
+1
-1
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user