mirror of
https://github.com/YTVanced/VancedMicroG
synced 2024-11-24 12:15:12 +00:00
Add FLAG_ACTIVITY_NEW_TASK when showing permission dialog for GCM, fixes #270
This commit is contained in:
parent
a29e759d7a
commit
050a78569d
1 changed files with 1 additions and 0 deletions
|
@ -140,6 +140,7 @@ public class PushRegisterService extends IntentService {
|
||||||
Intent i = new Intent(this, AskPushPermission.class);
|
Intent i = new Intent(this, AskPushPermission.class);
|
||||||
i.putExtra(EXTRA_PENDING_INTENT, intent);
|
i.putExtra(EXTRA_PENDING_INTENT, intent);
|
||||||
i.putExtra(EXTRA_APP, packageName);
|
i.putExtra(EXTRA_APP, packageName);
|
||||||
|
i.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
|
||||||
startActivity(i);
|
startActivity(i);
|
||||||
} catch (PackageManager.NameNotFoundException e) {
|
} catch (PackageManager.NameNotFoundException e) {
|
||||||
replyNotAvailable(this, intent, packageName);
|
replyNotAvailable(this, intent, packageName);
|
||||||
|
|
Loading…
Reference in a new issue