mirror of
https://github.com/TeamVanced/VancedMicroG
synced 2024-12-22 10:37:45 +01:00
Add FLAG_ACTIVITY_NEW_TASK when showing permission dialog for GCM, fixes #270
This commit is contained in:
parent
a29e759d7a
commit
050a78569d
@ -140,6 +140,7 @@ public class PushRegisterService extends IntentService {
|
||||
Intent i = new Intent(this, AskPushPermission.class);
|
||||
i.putExtra(EXTRA_PENDING_INTENT, intent);
|
||||
i.putExtra(EXTRA_APP, packageName);
|
||||
i.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
|
||||
startActivity(i);
|
||||
} catch (PackageManager.NameNotFoundException e) {
|
||||
replyNotAvailable(this, intent, packageName);
|
||||
|
Loading…
Reference in New Issue
Block a user