Skip to content

Commit

Permalink
Fixed alert dialog show event
Browse files Browse the repository at this point in the history
  • Loading branch information
uholeschak committed Jan 6, 2025
1 parent fae865e commit 893eea4
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions BmwDeepObd/MainActivity.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6740,12 +6740,20 @@ private void SelectDataLogging()
builder.SetNegativeButton(Resource.String.button_abort, (sender, args) => { });

AlertDialog alertDialog = builder.Create();
alertDialog.Show();

if (ActivityCommon.IsDocumentTreeSupported())
alertDialog.ShowEvent += (sender, args) =>
{
ActivityCommon.ShowAlertDialogBallon(this, alertDialog, Resource.String.menu_hint_copy_folder);
}
if (_activityCommon == null)
{
return;
}

if (ActivityCommon.IsDocumentTreeSupported())
{
ActivityCommon.ShowAlertDialogBallon(this, alertDialog, Resource.String.menu_hint_copy_folder);
}
};

alertDialog.Show();
}

private void OpenDonateLink()
Expand Down

0 comments on commit 893eea4

Please sign in to comment.