Skip to content
This repository was archived by the owner on Jan 14, 2025. It is now read-only.

Use root locale when changing case in java #2230

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
import java.util.Arrays;
import java.util.Calendar;
import java.util.List;
import java.util.Locale;
import java.util.Map;

import static com.dieam.reactnativepushnotification.modules.RNPushNotification.LOG_TAG;
Expand Down Expand Up @@ -230,7 +231,7 @@ public void sendToNotificationCentreWithPicture(Bundle bundle, Bitmap largeIconB
final String priorityString = bundle.getString("priority");

if (priorityString != null) {
switch (priorityString.toLowerCase()) {
switch (priorityString.toLowerCase(Locale.ROOT)) {
case "max":
priority = NotificationCompat.PRIORITY_MAX;
break;
Expand All @@ -255,7 +256,7 @@ public void sendToNotificationCentreWithPicture(Bundle bundle, Bitmap largeIconB
final String visibilityString = bundle.getString("visibility");

if (visibilityString != null) {
switch (visibilityString.toLowerCase()) {
switch (visibilityString.toLowerCase(Locale.ROOT)) {
case "private":
visibility = NotificationCompat.VISIBILITY_PRIVATE;
break;
Expand Down