-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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: Dynamic SettingsActivity Titles #7274
Conversation
"Dynamic" feels a bit like a stretch, since it can actually only be one of the 3 (or 4 if you count "Settings"). What are your thoughts on passing it into |
I think "Dynamic" is accurate since the title changes based upon the menu tag. Would passing to |
Was just a thought, mainly in leu of the open/closed principle where you wouldn't have to change that widget just for the name. But since there is other places where the menu tag is tied in, it doesn't really matter. |
Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/ui/settings/SettingsActivity.java
Outdated
Show resolved
Hide resolved
00e0839
to
da33e3e
Compare
@mahdihijazi and @riking Also, there is a bug when backing out of Graphics Settings -> Enhancements -> Stereoscopy. It backs out to the Enhancements submenu but the title displays "Graphics Settings" for some reason. |
9d194c4
to
aa6f9ad
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks better :)
@@ -38,6 +38,15 @@ | |||
<string name="wiimote_tilt">Tilt</string> | |||
<string name="wiimote_shake">Shake</string> | |||
|
|||
<!-- WARNING Do not move these controller entries AT ALL COSTS! They are indexed with ints, and an assumption | |||
is made that they are placed together so that we can access them sequentially in a loop. | |||
Wiimotes start at 4 since they are mapped to padID's 4-7 in the native code.--> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Accidentally included?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should I remove this for the Wii Remote Extensions? There were no string entries for them.
ce26bbd
to
087a97d
Compare
cf82842
to
4cd95ca
Compare
I think lint is incorrect. |
It is correct, just load the new code-style-java.xml file in AS. That way you can just hit cmd+opt+L(ctrl+alt+L on windows, I think) and be g2g. |
Still getting lint conflicts post ctrl+alt+L. This was rebased to master before pushing. |
Looks like you are still using the old style. Open settings -> editor -> code style. Next to scheme there is a drop down, select import and choose the new code-style-java.xml |
3557622
to
87eba7d
Compare
@Ebola16 If you go into Code Style > Java, if it imported right it should be set to using 2-space indents. |
Check that the "Dolphin-Java" code style is actually the one being used in your Project/Module Settings. The |
I checked settings and project structure but I didn't notice anything abnormal relating to code style. I also completely re-cloned the repo but it didn't help. |
350b49a
to
66287d1
Compare
44ac18e
to
ce2fd2f
Compare
LGTM |
I manually fixed the lint errors. However, there is a bug when backing out of Graphics Settings -> Enhancements -> Stereoscopy. It backs out to the Enhancements submenu but the title displays "Graphics Settings". Any ideas on how to fix this? |
It's due to getting the menuTag from the initial launch intent, so it will always be the menu tag passed to launch(). Completely missed that, yeah, looking at this a bit more this should be reworked. |
What's the status of this PR? |
9f8152d
to
a5c1b64
Compare
I redid this PR and the issues seem to be fixed now. Ready for review! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks fine to me. @mahdihijazi or @zackhow, do you have any comments on this?
Rebased for updated clang rules |
...any other reviews? |
sure |
Implements https://bugs.dolphin-emu.org/issues/11012.
The old code always displayed "Settings". This PR allows different titles, which makes identifying the current menu easier for users. Example: