mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-12 17:17:09 -04:00
Forgot that NoSuchFieldError derives from Error not Exception
This commit is contained in:
parent
75cc43d312
commit
6e433e5585
@ -700,8 +700,12 @@ public class MainActivity extends Activity {
|
|||||||
Window window = getWindow();
|
Window window = getWindow();
|
||||||
window.addFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS);
|
window.addFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS);
|
||||||
window.getAttributes().layoutInDisplayCutoutMode =
|
window.getAttributes().layoutInDisplayCutoutMode =
|
||||||
WindowManager.LayoutParams.LAYOUT_IN_DISPLAY_CUTOUT_MODE_SHORT_EDGES;
|
WindowManager.LayoutParams.LAYOUT_IN_DISPLAY_CUTOUT_MODE_SHORT_EDGES;
|
||||||
} catch (Exception ex) { }
|
} catch (NoSuchFieldError ex) {
|
||||||
|
ex.printStackTrace();
|
||||||
|
} catch (NoSuchMethodError ex) {
|
||||||
|
ex.printStackTrace();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void showAlertAsync(final String title, final String message) {
|
void showAlertAsync(final String title, final String message) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user