The notch option is now gone for users with no notch.

This commit is contained in:
SerpentSpirale 2021-06-28 14:32:19 +02:00
parent 9593adba31
commit f666e190be
2 changed files with 5 additions and 3 deletions

View file

@ -311,8 +311,8 @@ public class PojavLauncherActivity extends BaseLauncherActivity
@Override
public void onAttachedToWindow() {
super.onAttachedToWindow();
//Try to get the notch so it can be taken into account in settings
if (Build.VERSION.SDK_INT >= P){
//Get the fucking notch height:
try {
PREF_NOTCH_SIZE = getWindow().getDecorView().getRootWindowInsets().getDisplayCutout().getBoundingRects().get(0).width();
}catch (Exception e){