Skip to content

Commit 290841d

Browse files
fix(android): Reset lefttoright if not set (apache#442)
This fixes apache#441
1 parent 0e5f05c commit 290841d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/android/InAppBrowser.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -694,9 +694,8 @@ public String showWebPage(final String url, HashMap<String, String> features) {
694694
closeButtonColor = closeButtonColorSet;
695695
}
696696
String leftToRightSet = features.get(LEFT_TO_RIGHT);
697-
if (leftToRightSet != null) {
698-
leftToRight = leftToRightSet.equals("yes") ? true : false;
699-
}
697+
leftToRight = leftToRightSet != null && leftToRightSet.equals("yes");
698+
700699
String toolbarColorSet = features.get(TOOLBAR_COLOR);
701700
if (toolbarColorSet != null) {
702701
toolbarColor = android.graphics.Color.parseColor(toolbarColorSet);

0 commit comments

Comments
 (0)