Skip to content

Commit

Permalink
Merge pull request airbnb#57 from taxfix/fix/title
Browse files Browse the repository at this point in the history
Only set top title if set explicity, otherwise remove it
  • Loading branch information
henrikpersson committed Jan 22, 2018
2 parents d9feb14 + 8625088 commit 8a8d9dd
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -260,14 +260,14 @@ public void reconcileNavigationProperties(
foregroundColor = next.getInt("foregroundColor");
}

if (stringHasChanged("title", prev, next)) {
// if (stringHasChanged("title", prev, next)) {
if (next.hasKey("title")) {
String title = next.getString("title");
toolbar.setTitle(title);
} else {
toolbar.setTitle(null);
}
}
// }

if (firstCall || numberHasChanged("titleColor", prev, next)) {
if (next.hasKey("titleColor")) {
Expand Down

0 comments on commit 8a8d9dd

Please sign in to comment.