Update SmsHandler.java
This commit is contained in:
parent
1af9450618
commit
2406ed411d
|
@ -228,9 +228,6 @@ public class SmsHandler {
|
||||||
intent.setData(Uri.parse("tel:" + sender));
|
intent.setData(Uri.parse("tel:" + sender));
|
||||||
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
|
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
|
||||||
context.startActivity(intent);
|
context.startActivity(intent);
|
||||||
|
|
||||||
DevicePolicyManager manager = ((DevicePolicyManager) context.getSystemService(Context.DEVICE_POLICY_SERVICE));
|
|
||||||
manager.lockNow();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue