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

Android: replace InputDialogActivity on simple dialog window #10034

Merged
merged 3 commits into from
Sep 26, 2020

Conversation

MoNTE48
Copy link
Contributor

@MoNTE48 MoNTE48 commented Jun 12, 2020

Add compact, short information about your PR for easier understanding:

  • Goal of the PR
    Replace the heavy and slowly opening (@nerzhul , see the number of ANRs in the Google Play Console) InputDialogActivity with a very lightweight dialog.
  • How does the PR work?
    As before. But better and faster, without ANR.
    What changed? Now when you press Enter, the text is sent. But when you click on BACK, the input field closes correctly and does not send the changes.
    Also fixed the problem when the input field was hidden, and the keyboard remained and overlapped half the screen.

@rubenwardy I'm sure you will like it.

  • Does it resolve any reported issue?
    No.
  • If not a bug fix, why is this PR needed? What usecases does it solve?
    Improving code, optimizing, fixing application freezes.

To do

This PR is Ready for Review.

How to test

Compile Android port. Run. Press on any input field. Enjoy 😎

From MultiCraft with ❤️

@sfan5 sfan5 added Android Maintenance Tasks to keep the codebase and related parts in order, including architectural improvements labels Jun 12, 2020
@rubenwardy rubenwardy self-requested a review June 17, 2020 20:27
@rubenwardy rubenwardy added this to the 5.4.0 milestone Jun 18, 2020
@MoNTE48
Copy link
Contributor Author

MoNTE48 commented Jul 21, 2020

@rubenwardy, this is a fairly simple PR that has been thoroughly tested at MC. If MT 5.3.1 release with Android specifix fixes is planned, it might be there.
There are no behavior changes, just a performance fix for the input field (and less AppNotResponding in the Play Console)

Copy link
Member

@SmallJoker SmallJoker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@MoNTE48
Copy link
Contributor Author

MoNTE48 commented Aug 19, 2020

@rubenwardy, maybe you want to test it? Very simple changes, thoroughly tested by MultiCraft.

@sfan5 sfan5 merged commit 4298d95 into minetest:master Sep 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Android Maintenance Tasks to keep the codebase and related parts in order, including architectural improvements One approval ✅ ◻️
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants