v3.2.4: updates to improve handling of Android cutouts:
- HP bar can now resize-reposition to prevent being cut off - menu pane can now move inward to prevent being cut off - increased buff bar cut off sensitivity - slightly increased 'large cutout' permissiveness
This commit is contained in:
@@ -121,9 +121,10 @@ public class AndroidPlatformSupport extends PlatformSupport {
|
||||
for (Rect r : cutout.getBoundingRects()){
|
||||
//use abs as some cutouts can apparently be returned inverted
|
||||
int cutoutSize = Math.abs(r.height() * r.width());
|
||||
//display cutouts are considered large if they take up more than 0.605% of the screen
|
||||
//display cutouts are considered large if they take up more than 0.667% of the screen
|
||||
//in reality we want less than about 0.5%, but some cutouts over-report their size
|
||||
if (cutoutSize*165 >= screenSize){
|
||||
//Pixel devices especially =S
|
||||
if (cutoutSize*150 >= screenSize){
|
||||
largeCutout = true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user