Skip to content
This repository has been archived by the owner on Mar 27, 2020. It is now read-only.

Commit

Permalink
send PanicKit triggers when PanicButton is triggered
Browse files Browse the repository at this point in the history
  • Loading branch information
eighthave committed Jul 7, 2016
1 parent bb7d72f commit 578af03
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/src/main/java/org/iilab/pb/alert/PanicAlert.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 578af03

Please sign in to comment.