tuning boot code to work with VPN
This commit is contained in:
		
							parent
							
								
									b2ec768d8d
								
							
						
					
					
						commit
						dd09c6b19a
					
				| 
						 | 
				
			
			@ -34,6 +34,7 @@ public class OnBootReceiver extends BroadcastReceiver {
 | 
			
		|||
	public void startVpnService (Context context)
 | 
			
		||||
    {
 | 
			
		||||
        Intent intent = VpnService.prepare(context);
 | 
			
		||||
        intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
 | 
			
		||||
        if (intent != null) {
 | 
			
		||||
            context.startActivity(intent);
 | 
			
		||||
        } 
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue