commit 549399b82c40a0b3f4d50bd1d30ee2e282198ff2 Author: Nathan Freitas nathan@freitas.net Date: Wed Jun 29 10:48:59 2016 -0400
launch default activity from notification --- .../src/main/java/org/torproject/android/service/TorService.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
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 eedf682..c193559 100644 --- a/orbotservice/src/main/java/org/torproject/android/service/TorService.java +++ b/orbotservice/src/main/java/org/torproject/android/service/TorService.java @@ -207,7 +207,8 @@ public class TorService extends Service implements TorServiceConstants, OrbotCon {
//Reusable code. - Intent intent = new Intent(); + PackageManager pm = getPackageManager(); + Intent intent = pm.getLaunchIntentForPackage(getPackageName()); PendingIntent pendIntent = PendingIntent.getActivity(TorService.this, 0, intent, 0);
if (mNotifyBuilder == null)
tor-commits@lists.torproject.org