Skip to content
This repository has been archived by the owner on Apr 26, 2019. It is now read-only.

Commit

Permalink
Null-check proper action bar property. Closes JakeWharton#452.
Browse files Browse the repository at this point in the history
  • Loading branch information
JakeWharton committed Apr 27, 2012
1 parent 2c14628 commit 9289fea
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ public boolean dispatchKeyEvent(KeyEvent event) {
}

// Next collapse any expanded action views.
if (aActionBar != null && wActionBar.hasExpandedActionView()) {
if (wActionBar != null && wActionBar.hasExpandedActionView()) {
if (action == KeyEvent.ACTION_UP) {
wActionBar.collapseActionView();
}
Expand Down

0 comments on commit 9289fea

Please sign in to comment.