launch default activity from notification

This commit is contained in:
Nathan Freitas 2016-06-29 10:48:59 -04:00
parent 6d0fdbba10
commit 549399b82c
1 changed files with 2 additions and 1 deletions

View File

@ -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)