- Fixed fallback API implementation

This commit is contained in:
SerpentSpirale 2021-02-02 15:17:01 +01:00
parent fdf8fefd17
commit d8ea3c63bb

View File

@ -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.