Skip to content

Commit

Permalink
* improve behavior of the sample app. (Close crossfaded MiniDrawer
Browse files Browse the repository at this point in the history
…first)

 * FIX mikepenz#1382
  • Loading branch information
mikepenz committed Jul 11, 2016
1 parent ea03786 commit 82466cf
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -199,8 +199,8 @@ public boolean onCreateOptionsMenu(Menu menu) {
@Override
public void onBackPressed() {
//handle the back press :D close the drawer first and if the drawer is closed close the activity
if (result != null && result.isDrawerOpen()) {
result.closeDrawer();
if (crossFader != null && crossFader.isCrossFaded()) {
crossFader.crossFade();
} else {
super.onBackPressed();
}
Expand Down

0 comments on commit 82466cf

Please sign in to comment.