Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

please for 10.4 too #3

Closed
WillianBotacini opened this issue Nov 16, 2020 · 2 comments
Closed

please for 10.4 too #3

WillianBotacini opened this issue Nov 16, 2020 · 2 comments

Comments

@WillianBotacini
Copy link

No description provided.

@emrahozten
Copy link

After compiling the component in Delphi 10.4, make the following changes in the FGX.Helpers.Andorid.pas file.

procedure ShowDialog(ADialog: JDialog; const ADialogID: Integer);
begin
// if IsGingerbreadDevice then
MainActivity.showDialog(ADialogID, ADialog);
// else
ADialog.show;
end;

procedure HideDialog(ADialog: JDialog; const ADialogID: Integer);
begin

// if IsGingerbreadDevice then
//begin
MainActivity.dismissDialog(ADialogID);
MainActivity.removeDialog(ADialogID);
// end
// else
ADialog.dismiss;
end;

If you disable these lines the component will work in Delphi 10.4.

@theilgaz
Copy link
Owner

Hi there,
In 2021, I believe that there is no Gingerbread (Android 2.3) device live anymore. So I directly removed condition from showing and hiding functions.

I fixed this in #4 but I didn't test it. Please let me know if it occurs any error. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants