From f4a0bbb2a0610d36b2f8b6a3849503b5cc74107c Mon Sep 17 00:00:00 2001 From: Simon Marquis Date: Tue, 12 Mar 2019 20:12:08 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=8F=EF=B8=8F=20Fix=20typo=20causing=20sil?= =?UTF-8?q?ent=20messages=20to=20be=20notified?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/build.gradle | 2 +- app/src/main/java/fr/smarquis/fcm/FcmService.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 00c45d0..f839017 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -1,6 +1,6 @@ def versionMajor = 1 def versionMinor = 6 -def versionPatch = 0 +def versionPatch = 1 def versionBuild = 0 apply plugin: 'com.android.application' diff --git a/app/src/main/java/fr/smarquis/fcm/FcmService.java b/app/src/main/java/fr/smarquis/fcm/FcmService.java index b97992f..d1b5aed 100644 --- a/app/src/main/java/fr/smarquis/fcm/FcmService.java +++ b/app/src/main/java/fr/smarquis/fcm/FcmService.java @@ -42,7 +42,7 @@ public void onNewToken(String token) { public void onMessageReceived(RemoteMessage remoteMessage) { super.onMessageReceived(remoteMessage); Message message = Message.from(remoteMessage); - boolean silent = Boolean.valueOf(remoteMessage.getData().get("silent")); + boolean silent = Boolean.valueOf(remoteMessage.getData().get("hide")); new Handler(Looper.getMainLooper()).post(() -> notifyAndExecute(message, silent, this)); }