You've already forked android_translation_layer
mirror of
https://gitlab.com/android_translation_layer/android_translation_layer.git
synced 2025-10-27 11:48:10 -07: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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user