0
0
Fork 0
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:
Marvin W 2017-01-15 22:53:17 +01:00
parent a29e759d7a
commit 050a78569d
No known key found for this signature in database
GPG key ID: 072E9235DB996F2A

View file

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