File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
src/com/habitrpg/android/habitica Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 2929 {
3030 "type" : " F" ,
3131 "title" : " Quest-Text can now display the HTML correctly"
32+ },
33+ {
34+ "type" : " N" ,
35+ "title" : " Task filter drawer now closes when back button is pressed"
3236 }
3337 ]
3438 },
Original file line number Diff line number Diff line change 1515import android .support .v7 .app .AppCompatActivity ;
1616import android .support .v7 .widget .Toolbar ;
1717import android .util .Log ;
18+ import android .view .Gravity ;
1819import android .view .KeyEvent ;
1920import android .view .Menu ;
2021import android .view .View ;
@@ -449,6 +450,8 @@ public void setActiveFragment(BaseFragment fragment) {
449450 public void onBackPressed () {
450451 if (drawer .isDrawerOpen ()) {
451452 drawer .closeDrawer ();
453+ } else if (drawer .getDrawerLayout ().isDrawerOpen (Gravity .RIGHT )) {
454+ drawer .getDrawerLayout ().closeDrawer (Gravity .RIGHT );
452455 } else {
453456 super .onBackPressed ();
454457 }
@@ -570,7 +573,7 @@ public void failure(RetrofitError error) {
570573 }
571574
572575
573- public void onEvent (final DeleteTaskCommand cmd ){
576+ public void onEvent (final DeleteTaskCommand cmd ) {
574577 mAPIHelper .apiService .deleteTask (cmd .TaskIdToDelete , new Callback <Void >() {
575578 @ Override
576579 public void success (Void aVoid , Response response ) {
You can’t perform that action at this time.
0 commit comments