mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-18 09:07:48 -04:00
- Fixed fallback API implementation
This commit is contained in:
parent
fdf8fefd17
commit
d8ea3c63bb
@ -328,7 +328,7 @@ public final class Tools
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.R) {
|
||||
ctx.getDisplay().getRealMetrics(displayMetrics);
|
||||
} else {
|
||||
displayMetrics = ctx.getWindowManager().getDefaultDisplay();
|
||||
ctx.getWindowManager().getDefaultDisplay().getRealMetrics(displayMetrics);
|
||||
}
|
||||
if(!PREF_IGNORE_NOTCH){
|
||||
//Remove notch width when it isn't ignored.
|
||||
|
Loading…
x
Reference in New Issue
Block a user