Forgot that NoSuchFieldError derives from Error not Exception

This commit is contained in:
UnknownShadow200 2021-08-21 10:36:36 +10:00
parent 75cc43d312
commit 6e433e5585

View file

@ -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) {