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

Commit 596279a

Browse files
committed
send PanicKit triggers when PanicButton is triggered
1 parent 1e69bdf commit 596279a

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

app/src/main/java/org/iilab/pb/alert/PanicAlert.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
import java.util.concurrent.ExecutorService;
2323
import java.util.concurrent.Executors;
2424

25+
import info.guardianproject.panic.PanicTrigger;
26+
2527
import static android.location.LocationManager.GPS_PROVIDER;
2628
import static android.location.LocationManager.NETWORK_PROVIDER;
2729
import 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();

0 commit comments

Comments
 (0)