Launcher activity: Don't handle the back button

This commit is contained in:
Jules Aguillon 2023-06-03 10:00:16 +02:00
parent 22d407c46a
commit 6f418727cf

View File

@ -37,6 +37,9 @@ public class LauncherActivity extends Activity
{
public boolean onUnhandledKeyEvent(View v, KeyEvent ev)
{
// Don't handle the back key
if (ev.getKeyCode() == KeyEvent.KEYCODE_BACK)
return false;
// Key release of modifiers would erase interesting data
if (KeyEvent.isModifierKey(ev.getKeyCode()))
return false;