mirror of
https://gitlab.com/android_translation_layer/android_translation_layer.git
synced 2025-04-28 12:17:57 +03:00
Activity: HACK: catch errors in onCreateOptionsMenu()
This method throws some non critical errors in the Open Sudoku app. Catch them for now until we fixed the root cause.
This commit is contained in:
parent
f20bb6cb1c
commit
b911d73eb3
1 changed files with 7 additions and 1 deletions
|
@ -428,7 +428,13 @@ public class Activity extends ContextThemeWrapper implements Window.Callback, La
|
|||
@Override
|
||||
public boolean onCreatePanelMenu(int featureId, Menu menu) {
|
||||
if (featureId == Window.FEATURE_OPTIONS_PANEL) {
|
||||
return onCreateOptionsMenu(menu);
|
||||
// HACK: catch non critical error occuring in Open Sudoku app
|
||||
try {
|
||||
return onCreateOptionsMenu(menu);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue