Merge pull request #593 from TheHollidayInn/push-notification-pm-to-app-fix

Opened app when user clicks PM notification
This commit is contained in:
Phillip Thelen 2016-08-09 11:17:46 +02:00 committed by GitHub
commit 609a037307
2 changed files with 2 additions and 1 deletions

View file

@ -111,6 +111,7 @@ public class PushNotificationManager {
if (this.user.getPushDevices() == null) {
return true;
}
for(PushDevice pushDevice : this.user.getPushDevices()) {
if(pushDevice.getRegId().equals(this.refreshedToken)) {
return true;

View file

@ -33,7 +33,7 @@ public class ReceivedPrivateMessageLocalNotification extends HabiticaLocalNotifi
}
protected void setNotificationActions() {
Intent intent = new Intent(context, LocalNotificationActionReceiver.class);
Intent intent = new Intent(context, MainActivity.class);
PendingIntent pendingIntent = PendingIntent.getActivity(
context,
3000,