From 6f7f42ed4e9da6d4461e987b91db895bb784947f Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Wed, 23 Dec 2015 15:50:59 +0100 Subject: [PATCH] send PanicKit triggers when PanicButton is triggered --- app/src/main/java/org/iilab/pb/alert/PanicAlert.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/src/main/java/org/iilab/pb/alert/PanicAlert.java b/app/src/main/java/org/iilab/pb/alert/PanicAlert.java index beca46d0..508e6286 100644 --- a/app/src/main/java/org/iilab/pb/alert/PanicAlert.java +++ b/app/src/main/java/org/iilab/pb/alert/PanicAlert.java @@ -14,6 +14,8 @@ import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; +import info.guardianproject.panic.PanicTrigger; + import static android.location.LocationManager.GPS_PROVIDER; import static android.location.LocationManager.NETWORK_PROVIDER; import static org.iilab.pb.common.AppConstants.GPS_MIN_DISTANCE; @@ -75,6 +77,8 @@ public void run() { private void activateAlert() { setAlertActive(context, true); + // send panic triggers to responder apps that support it + PanicTrigger.sendTrigger(context); sendFirstAlert(); registerLocationUpdate(); scheduleFutureAlert();