Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

Commit

Permalink
Fix cast of non appcompat renderer to DrawerLayout (#13084)
Browse files Browse the repository at this point in the history
  • Loading branch information
PureWeen committed Dec 10, 2020
1 parent ee7a5a6 commit 259a412
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Xamarin.Forms.Platform.Android/Platform.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
using Android.Util;
using Android.Views;
using Android.Widget;
using AndroidX.DrawerLayout.Widget;
using AndroidX.Legacy.App;
using Xamarin.Forms.Internals;
using Xamarin.Forms.Platform.Android.AppCompat;
Expand Down Expand Up @@ -793,7 +794,7 @@ Drawable GetActionBarBackgroundDrawable()

void GetNewFlyoutPageToggle()
{
var drawer = GetRenderer(CurrentFlyoutPage) as FlyoutPageRenderer;
var drawer = GetRenderer(CurrentFlyoutPage) as DrawerLayout;
if (drawer == null)
return;

Expand Down

0 comments on commit 259a412

Please sign in to comment.