dpogue commented on code in PR #1955:
URL: https://github.com/apache/cordova-android/pull/1955#discussion_r3398270387


##########
framework/src/org/apache/cordova/SystemBarPlugin.java:
##########
@@ -121,19 +121,17 @@ private void setStatusBarVisible(final boolean visible) {
      * If the supplied ARGB is invalid or fails to parse, it will silently 
ignore
      * the change request.
      *
-     * @param argbVals {A, R, G, B}
+     * @param argbVals {R, G, B, A}
      */
     private void setStatusBarBackgroundColor(JSONArray argbVals) {
         try {

Review Comment:
   `argbVals.getInt(1)` could throw `JSONException` if this ends up getting 
called with bad data. This is technically callable by anyone from the webview, 
so we can't guarantee we'll only receive the expected data and we need to 
handle that safely without crashing.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to