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 Mar 14, 2016
1 parent b8b1091 commit 4fe008c
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 @@ -17,6 +17,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.ONE_MINUTE;
Expand Down Expand Up @@ -64,6 +66,8 @@ public void run() {

private void activateAlert() {
ApplicationSettings.setAlertActive(context, true);
// send panic triggers to responder apps that support it
PanicTrigger.sendTrigger(context);
sendFirstAlert();
registerLocationUpdate();
scheduleFutureAlert();
Expand Down

0 comments on commit 4fe008c

Please sign in to comment.