1
0
mirror of https://github.com/accelforce/Yuito synced 2025-01-10 22:54:42 +01:00

Fix onBackPressed never called in ComposeActivity (#1317)

This commit is contained in:
kyori19 2019-06-11 02:40:07 +09:00 committed by Konrad Pozniak
parent 05d939b68a
commit 4d916eb106

View File

@ -1655,6 +1655,11 @@ public final class ComposeActivity
}
}
if (keyCode == KeyEvent.KEYCODE_BACK) {
onBackPressed();
return true;
}
return super.onKeyDown(keyCode, event);
}