mirror of
https://github.com/strongswan/strongswan.git
synced 2025-10-03 00:00:24 -04:00
android: Suppress deprecation warning because of startActivityAndCollapse()
This commit is contained in:
parent
4e2c88f7ed
commit
5237bf3a5c
@ -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()
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user