|  | @@ -178,12 +178,10 @@ public class GodotIO {
 | 
	
		
			
				|  |  |  	}
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  	public int[] getDisplaySafeArea() {
 | 
	
		
			
				|  |  | -		DisplayMetrics metrics = activity.getResources().getDisplayMetrics();
 | 
	
		
			
				|  |  | -		Display display = activity.getWindowManager().getDefaultDisplay();
 | 
	
		
			
				|  |  | -		Point size = new Point();
 | 
	
		
			
				|  |  | -		display.getRealSize(size);
 | 
	
		
			
				|  |  | +		Rect rect = new Rect();
 | 
	
		
			
				|  |  | +		activity.getWindow().getDecorView().getWindowVisibleDisplayFrame(rect);
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -		int[] result = { 0, 0, size.x, size.y };
 | 
	
		
			
				|  |  | +		int[] result = { rect.left, rect.top, rect.right, rect.bottom };
 | 
	
		
			
				|  |  |  		if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) {
 | 
	
		
			
				|  |  |  			WindowInsets insets = activity.getWindow().getDecorView().getRootWindowInsets();
 | 
	
		
			
				|  |  |  			DisplayCutout cutout = insets.getDisplayCutout();
 |