Skip to content

Commit

Permalink
fix(status-bar): Use Locale.ROOT on toUpperCase (#814)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcesarmobile authored Feb 9, 2022
1 parent ecc55e1 commit bf804ce
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import com.getcapacitor.PluginMethod;
import com.getcapacitor.annotation.CapacitorPlugin;
import com.getcapacitor.util.WebColor;
import java.util.Locale;

@CapacitorPlugin(name = "StatusBar")
public class StatusBarPlugin extends Plugin {
Expand Down Expand Up @@ -46,7 +47,7 @@ public void setBackgroundColor(final PluginCall call) {
.executeOnMainThread(
() -> {
try {
final int parsedColor = WebColor.parseColor(color.toUpperCase());
final int parsedColor = WebColor.parseColor(color.toUpperCase(Locale.ROOT));
implementation.setBackgroundColor(parsedColor);
call.resolve();
} catch (IllegalArgumentException ex) {
Expand Down

0 comments on commit bf804ce

Please sign in to comment.