Skip to content

Commit

Permalink
Return true when we toggle the drawer
Browse files Browse the repository at this point in the history
The docs say we can check the return value from
ActionBarDrawerToggle#onOptionsItemSelected(MenuItem) to
short-circuit Activity#onOptionsItemSelected(MenuItem), but we were
never returning true.

Change-Id: Ieadc469e65189c27182ed5b28ffb9cd712d06b96
  • Loading branch information
scottkennedy committed May 19, 2013
1 parent c27e9ab commit be5d626
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions v4/java/android/support/v4/app/ActionBarDrawerToggle.java
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,7 @@ public boolean onOptionsItemSelected(MenuItem item) {
} else {
mDrawerLayout.openDrawer(GravityCompat.START);
}
return true;
}
return false;
}
Expand Down

0 comments on commit be5d626

Please sign in to comment.