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 893eea4 commit b0a3eb9
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 10 deletions.
17 changes: 12 additions & 5 deletions BmwDeepObd/BmwCodingActivity.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1617,12 +1617,19 @@ private void SelectDataLogging()
});

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 bool SendTraceFile(EventHandler<EventArgs> handler)
Expand Down
17 changes: 12 additions & 5 deletions BmwDeepObd/EdiabasToolActivity.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1459,12 +1459,19 @@ private void SelectDataLogging()
});

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 AdapterConfig()
Expand Down

0 comments on commit b0a3eb9

Please sign in to comment.