Skip to content

Commit

Permalink
✏️ Fix typo causing silent messages to be notified
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonMarquis committed Mar 12, 2019
1 parent 34a077a commit f4a0bbb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
def versionMajor = 1
def versionMinor = 6
def versionPatch = 0
def versionPatch = 1
def versionBuild = 0

apply plugin: 'com.android.application'
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/fr/smarquis/fcm/FcmService.java
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public void onNewToken(String token) {
public void onMessageReceived(RemoteMessage remoteMessage) {
super.onMessageReceived(remoteMessage);
Message<Payload> 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));
}

Expand Down

0 comments on commit f4a0bbb

Please sign in to comment.