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

@ -701,7 +701,11 @@ public class MainActivity extends Activity {
window.addFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS);
window.getAttributes().layoutInDisplayCutoutMode =
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) {