Opened app when user clicks PM notification

This commit is contained in:
Keith Holliday 2016-08-08 20:02:50 -05:00
parent c346327587
commit 6948047ae2
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,