launch default activity from notification
This commit is contained in:
parent
6d0fdbba10
commit
549399b82c
|
@ -207,7 +207,8 @@ public class TorService extends Service implements TorServiceConstants, OrbotCon
|
||||||
{
|
{
|
||||||
|
|
||||||
//Reusable code.
|
//Reusable code.
|
||||||
Intent intent = new Intent();
|
PackageManager pm = getPackageManager();
|
||||||
|
Intent intent = pm.getLaunchIntentForPackage(getPackageName());
|
||||||
PendingIntent pendIntent = PendingIntent.getActivity(TorService.this, 0, intent, 0);
|
PendingIntent pendIntent = PendingIntent.getActivity(TorService.this, 0, intent, 0);
|
||||||
|
|
||||||
if (mNotifyBuilder == null)
|
if (mNotifyBuilder == null)
|
||||||
|
|
Loading…
Reference in New Issue