We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1c45565 commit 2b5847dCopy full SHA for 2b5847d
1 file changed
app/src/main/java/org/iilab/pb/alert/PanicAlert.java
@@ -17,6 +17,8 @@
17
import java.util.concurrent.ExecutorService;
18
import java.util.concurrent.Executors;
19
20
+import info.guardianproject.panic.PanicTrigger;
21
+
22
import static android.location.LocationManager.GPS_PROVIDER;
23
import static android.location.LocationManager.NETWORK_PROVIDER;
24
import static org.iilab.pb.common.AppConstants.ONE_MINUTE;
@@ -74,6 +76,8 @@ public void run() {
74
76
75
77
private void activateAlert() {
78
ApplicationSettings.setAlertActive(context, true);
79
+ // send panic triggers to responder apps that support it
80
+ PanicTrigger.sendTrigger(context);
81
sendFirstAlert();
82
registerLocationUpdate();
83
scheduleFutureAlert();
0 commit comments