This repository was archived by the owner on Mar 27, 2020. It is now read-only.
File tree Expand file tree Collapse file tree
app/src/main/java/org/iilab/pb/alert Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2222import java .util .concurrent .ExecutorService ;
2323import java .util .concurrent .Executors ;
2424
25+ import info .guardianproject .panic .PanicTrigger ;
26+
2527import static android .location .LocationManager .GPS_PROVIDER ;
2628import static android .location .LocationManager .NETWORK_PROVIDER ;
2729import static org .iilab .pb .common .Intents .locationPendingIntent ;
@@ -67,6 +69,8 @@ private void vibrateOnce() {
6769
6870 private void activateAlert () {
6971 ApplicationSettings .setAlertActive (context , true );
72+ // send panic triggers to responder apps that support it
73+ PanicTrigger .sendTrigger (context );
7074 sendFirstAlert ();
7175 registerLocationUpdate ();
7276 scheduleFutureAlert ();
You can’t perform that action at this time.
0 commit comments