Fix onBackPressed never called in ComposeActivity (#1317)
This commit is contained in:
parent
5fa4ed82d0
commit
d5d834526c
|
@ -1655,6 +1655,11 @@ public final class ComposeActivity
|
|||
}
|
||||
}
|
||||
|
||||
if (keyCode == KeyEvent.KEYCODE_BACK) {
|
||||
onBackPressed();
|
||||
return true;
|
||||
}
|
||||
|
||||
return super.onKeyDown(keyCode, event);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue