[tor-commits] [orbot/master] comment out notification actions for now
n8fr8 at torproject.org
n8fr8 at torproject.org
Mon Oct 24 20:54:08 UTC 2016
commit 518f70d8721624e9cbbf8e58c4b53004f9a17b17
Author: Nathan Freitas <nathan at freitas.net>
Date: Mon Oct 24 10:49:47 2016 -0400
comment out notification actions for now
---
.../java/org/torproject/android/service/TorService.java | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/orbotservice/src/main/java/org/torproject/android/service/TorService.java b/orbotservice/src/main/java/org/torproject/android/service/TorService.java
index e4faeb5..d1ae1fd 100644
--- a/orbotservice/src/main/java/org/torproject/android/service/TorService.java
+++ b/orbotservice/src/main/java/org/torproject/android/service/TorService.java
@@ -26,6 +26,7 @@ import android.content.pm.PackageManager;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.os.Build;
+import android.os.Bundle;
import android.os.IBinder;
import android.os.RemoteException;
import android.support.v4.app.NotificationCompat;
@@ -208,6 +209,22 @@ public class TorService extends Service implements TorServiceConstants, OrbotCon
.setSmallIcon(R.drawable.ic_stat_tor);
mNotifyBuilder.setContentIntent(pendIntent);
+
+ /**
+ //Restart intent
+ Intent yesReceive = new Intent();
+ yesReceive.setAction("Restart");
+ PendingIntent pendingIntentYes = PendingIntent.getBroadcast(this, 12345, yesReceive, PendingIntent.FLAG_UPDATE_CURRENT);
+ mNotifyBuilder.addAction(R.drawable.ic_stat_tor_off, "Restart", pendingIntentYes);
+
+
+ //Maybe intent
+ Intent maybeReceive = new Intent();
+ maybeReceive.setAction("Identity");
+ PendingIntent pendingIntentMaybe = PendingIntent.getBroadcast(this, 12345, maybeReceive, PendingIntent.FLAG_UPDATE_CURRENT);
+ mNotifyBuilder.addAction(R.drawable.ic_stat_tor_xfer, "New Identity", pendingIntentMaybe);
+ **/
+
}
}
More information about the tor-commits
mailing list