Add workaround for bug #912

This commit is contained in:
Dominik Schürmann 2014-10-02 11:23:43 +02:00
parent 42ce3bb0d3
commit 17e45d94a8

View File

@ -20,6 +20,7 @@ package org.sufficientlysecure.keychain.ui;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.ActionBarActivity;
import android.view.KeyEvent;
import android.view.View;
import android.view.Window;
@ -98,4 +99,10 @@ public class FirstTimeActivity extends ActionBarActivity {
startActivityForResult(intent, 0);
finish();
}
// workaround for https://code.google.com/p/android/issues/detail?id=61394
@Override
public boolean onKeyDown(int keyCode, KeyEvent event) {
return keyCode == KeyEvent.KEYCODE_MENU || super.onKeyDown(keyCode, event);
}
}