diff --git a/src/android/InAppBrowser.java b/src/android/InAppBrowser.java index 048b02a11..a958186d9 100644 --- a/src/android/InAppBrowser.java +++ b/src/android/InAppBrowser.java @@ -682,9 +682,8 @@ public String showWebPage(final String url, HashMap features) { closeButtonColor = closeButtonColorSet; } String leftToRightSet = features.get(LEFT_TO_RIGHT); - if (leftToRightSet != null) { - leftToRight = leftToRightSet.equals("yes") ? true : false; - } + leftToRight = leftToRightSet != null && leftToRightSet.equals("yes"); + String toolbarColorSet = features.get(TOOLBAR_COLOR); if (toolbarColorSet != null) { toolbarColor = android.graphics.Color.parseColor(toolbarColorSet);