Skip to content

Commit 4a4f86d

Browse files
authored
Update PopupPageRenderer.cs
updated to use Android Rect due to .Net 5 prerelease
1 parent e262cfe commit 4a4f86d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Rg.Plugins.Popup/Platforms/Android/Renderers/PopupPageRenderer.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@ protected override void OnLayout(bool changed, int l, int t, int r, int b)
6868
var decoreHeight = decoreView.Height;
6969
var decoreWidht = decoreView.Width;
7070

71-
var visibleRect = new Rect();
71+
var visibleRect = new Android.Graphics.Rect();
72+
7273
decoreView.GetWindowVisibleDisplayFrame(visibleRect);
7374

7475
if (Build.VERSION.SdkInt >= BuildVersionCodes.M)
@@ -244,4 +245,4 @@ private bool IsInRegion(float x, float y, View v)
244245

245246
#endregion
246247
}
247-
}
248+
}

0 commit comments

Comments
 (0)