Skip to content
Permalink
Browse files
fix(android): Reset lefttoright if not set (#442)
This fixes #441
  • Loading branch information
purplecabbage committed Mar 25, 2020
1 parent 0e5f05c commit 290841dea6a2942827cff2bb512118e3908cdd8e
Showing 1 changed file with 2 additions and 3 deletions.
@@ -694,9 +694,8 @@ public String showWebPage(final String url, HashMap<String, String> 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);

0 comments on commit 290841d

Please sign in to comment.