mirror of
https://github.com/moparisthebest/open-keychain
synced 2024-12-24 07:58:50 -05:00
Add workaround for bug #912
This commit is contained in:
parent
42ce3bb0d3
commit
17e45d94a8
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user