-
Notifications
You must be signed in to change notification settings - Fork 521
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
Fix #1762, #2704: Highlight Correct MenuItem after cancelling ExitProfileDialog #2671
Fix #1762, #2704: Highlight Correct MenuItem after cancelling ExitProfileDialog #2671
Conversation
app/src/main/java/org/oppia/android/app/drawer/NavigationDrawerFragmentPresenter.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/org/oppia/android/app/drawer/NavigationDrawerFragment.kt
Outdated
Show resolved
Hide resolved
Screenrecorder-2021-02-09-21-20-49-293.mp4Now we are facing only 1 bug-
|
Honestly from a user perspective I think this looks quite solid @prayutsu. The scenario you described is quite an edge case, and I'm not even sure it can be considered a bug. It does have slight inconsistency with the other configuration change scenarios, but it still seems arguably 'correct' in the context in which it's observed (e.g. you're still in the admin controls page). |
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.
Thanks @prayutsu. This is definitely moving toward the right solution. Just have a few specific thoughts on the exact mechanism being built into the navigation drawer presenter. PTAL.
app/src/main/java/org/oppia/android/app/drawer/NavigationDrawerFragmentPresenter.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/org/oppia/android/app/drawer/NavigationDrawerFragmentPresenter.kt
Outdated
Show resolved
Hide resolved
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.
app/src/main/java/org/oppia/android/app/testing/NavigationDrawerTestActivity.kt
Outdated
Show resolved
Hide resolved
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.
Forgot about my suggestions because of issue filing. Blocking this PR for nit changes.
… highlight-correct-item-after-cancelling-exit-profile-dialog
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.
LGTM, thanks.
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.
LGTM
[If @chrk2205 do not have any suggestions, then @anandwana001 can merge this PR. |
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.
LGTM
Thanks, everyone for reviewing the PR!! |
@BenHenning and @anandwana001 Some |
@rt4914 Optional tests can be partly ignored (which is why they're being kept optional). We don't need to block submission on them yet, but we should ensure new breakages are fixed in PRs where we can spot them. This isn't as perfect as requiring the tests yet, but we will need to wait a few weeks before we can mark them as required. |
The failures seem like known flakes that are outside our codebase & need more investigating, plus one apparent issue with the compute affected targets PR process: https://github.com/oppia/oppia-android/pull/2671/checks?check_run_id=1908497857. Adding this to #2691. |
…xit-profile-dialog
Re-running with latest develop & enabling auto-merge. |
@BenHenning Thanks. |
Explanation
Fixes #1762, and fixes #2704 -
Navigation Drawer now highlights the correct menu Item after canceling the ExitProfileDialog, and also after pressing the back button (when some activity is opened from the navigation drawer).
Manual testing video -
https://user-images.githubusercontent.com/54636525/107812250-6ceda380-6d95-11eb-9d46-5dafb44838c2.mp4
Tests passing on ESPRESSO-
New test cases being ignored on Robolectric-
Checklist