Fix offset on-screen controls on desktop mode.

This commit is contained in:
SerpentSpirale 2021-09-07 19:32:57 +02:00 committed by SerpentSpirale
parent b32123ba58
commit 6ba6ea2db7
2 changed files with 8 additions and 4 deletions

View file

@ -317,6 +317,7 @@ public class PojavLauncherActivity extends BaseLauncherActivity
PREF_NOTCH_SIZE = getWindow().getDecorView().getRootWindowInsets().getDisplayCutout().getBoundingRects().get(0).width();
}catch (Exception e){
Log.i("NOTCH DETECTION", "No notch detected, or the device if in split screen mode");
PREF_NOTCH_SIZE = -1;
}
Tools.updateWindowSize(this);
}