Skip to content

Commit

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

@CapacitorPlugin(name = "SplashScreen")
public class SplashScreenPlugin extends Plugin {
Expand Down Expand Up @@ -103,7 +104,7 @@ private SplashScreenConfig getSplashScreenConfig() {
if (spinnerStyle != null) {
int spinnerBarStyle = android.R.attr.progressBarStyleLarge;

switch (spinnerStyle.toLowerCase()) {
switch (spinnerStyle.toLowerCase(Locale.ROOT)) {
case "horizontal":
spinnerBarStyle = android.R.attr.progressBarStyleHorizontal;
break;
Expand Down

0 comments on commit ecc55e1

Please sign in to comment.