Skip to content

Commit

Permalink
fix(camera): Use Locale.ROOT on toUpperCase (#812)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcesarmobile authored Feb 9, 2022
1 parent 66dd3ab commit 6d689ac
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
import java.io.InputStream;
import java.util.ArrayList;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import java.util.concurrent.Executor;
import java.util.concurrent.Executors;
Expand Down Expand Up @@ -232,7 +233,7 @@ private CameraResultType getResultType(String resultType) {
return null;
}
try {
return CameraResultType.valueOf(resultType.toUpperCase());
return CameraResultType.valueOf(resultType.toUpperCase(Locale.ROOT));
} catch (IllegalArgumentException ex) {
Logger.debug(getLogTag(), "Invalid result type \"" + resultType + "\", defaulting to base64");
return CameraResultType.BASE64;
Expand Down

0 comments on commit 6d689ac

Please sign in to comment.