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: various cleanups in UI code #6086

Merged
merged 4 commits into from
Sep 28, 2017
Merged

Conversation

hackbar
Copy link
Contributor

@hackbar hackbar commented Sep 26, 2017

Some minor cleanup for Android UI code.

This is handled by gradle, we don't need a separate strings.xml for
debug.
FRAGMENT_ID wasn't actually the fragment's ID (that's misleading, and
sounds like the tag). It's actually the layout resource ID. There's no point in making that a static constant.
@@ -59,6 +59,7 @@
private FrameLayout mFrameEmulation;
private LinearLayout mMenuLayout;

private enum MenuType {SAVE, LOAD}

This comment was marked as off-topic.

This comment was marked as off-topic.

Fix the hack of using the layout resource ID as a save/load ID, and
instead use a proper enum.
Prefixing everything with a constant packagename is not needed for
internal keys, and just adds complexity.

Rename ARGUMENT_ prefix to ARG_ to match (most) of the rest of the
codebase.

Restrict visiblity of above as much as possible.
@hackbar
Copy link
Contributor Author

hackbar commented Sep 28, 2017

Can you take another look at this?

Copy link
Contributor

@Helios747 Helios747 left a comment

Choose a reason for hiding this comment

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

LGTM. untested but the changes look harmless. Merge whenever

@leoetlino leoetlino merged commit 235f860 into dolphin-emu:master Sep 28, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants