mirror of
https://github.com/2009scape/2009Scape-mobile.git
synced 2025-12-20 13:30:15 -07:00
The notch option is now gone for users with no notch.
This commit is contained in:
parent
9593adba31
commit
f666e190be
2 changed files with 5 additions and 3 deletions
|
|
@ -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){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue