I've an app with an overlay and I need to check if the device has a notch or not.
Normally you use the activity and call following:
activity.getWindow().getDecorView().getRootWindowInsets().getDisplayCutout()
Any alternative way to check for a notch that also works in a service? I need to adjust my overlay if the device has a notch...
Any way to find out if the device has a notch or not if I can only access the WindowManager
?