Skip to content

Commit

Permalink
fix degradation #79
Browse files Browse the repository at this point in the history
  • Loading branch information
Satoshi Nakamura committed Jul 4, 2020
1 parent 7ad6f38 commit 50f2a0b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions SettingsView.Droid/Cells/CellBaseView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,9 @@ public CellBaseView(Context context, Cell cell) : base(context)
public CellBaseView(IntPtr javaReference,JniHandleOwnership transfer) : base(javaReference, transfer) { }

protected virtual void CreateContentView()
{
var contentView = (_Context as FormsAppCompatActivity).LayoutInflater.Inflate(Resource.Layout.CellBaseView, this, true);
{
var layoutInflater = (LayoutInflater)_Context.GetSystemService(Context.LayoutInflaterService);
var contentView = layoutInflater.Inflate(Resource.Layout.CellBaseView, this, true);

contentView.LayoutParameters = new ViewGroup.LayoutParams(-1, -1);

Expand Down

0 comments on commit 50f2a0b

Please sign in to comment.