mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-01-22 09:01:57 -05:00
Forgot that NoSuchFieldError derives from Error not Exception
This commit is contained in:
parent
75cc43d312
commit
6e433e5585
1 changed files with 6 additions and 2 deletions
|
@ -700,8 +700,12 @@ public class MainActivity extends Activity {
|
|||
Window window = getWindow();
|
||||
window.addFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS);
|
||||
window.getAttributes().layoutInDisplayCutoutMode =
|
||||
WindowManager.LayoutParams.LAYOUT_IN_DISPLAY_CUTOUT_MODE_SHORT_EDGES;
|
||||
} catch (Exception ex) { }
|
||||
WindowManager.LayoutParams.LAYOUT_IN_DISPLAY_CUTOUT_MODE_SHORT_EDGES;
|
||||
} catch (NoSuchFieldError ex) {
|
||||
ex.printStackTrace();
|
||||
} catch (NoSuchMethodError ex) {
|
||||
ex.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
void showAlertAsync(final String title, final String message) {
|
||||
|
|
Loading…
Reference in a new issue