-
Notifications
You must be signed in to change notification settings - Fork 531
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 #577: Display profile name on navigation drawer. #578
Conversation
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.
the approach should be different in this implementation, we should try to use viewmodel for data binding. I am currently trying one solution, for a cleaner implementation .
Okay. |
@veena14cs Please check my last commit. I have updated the implementation approach. Also, please add test cases too. |
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 please add test-cases and assign me back.
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.
Some nit suggestions, Beside that PR LGTM
app/src/main/java/org/oppia/app/drawer/NavigationDrawerFragmentPresenter.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/org/oppia/app/drawer/NavigationDrawerFragmentPresenter.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/org/oppia/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.
LGTM. I have mentioned some nit changes and 1 more test case.
app/src/main/java/org/oppia/app/drawer/NavigationDrawerFragmentPresenter.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/org/oppia/app/drawer/NavigationDrawerFragmentPresenter.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/org/oppia/app/drawer/NavigationDrawerHeaderViewModel.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/org/oppia/app/testing/NavigationDrawerTestActivity.kt
Outdated
Show resolved
Hide resolved
app/src/sharedTest/java/org/oppia/app/testing/NavigationDrawerTestActivityTest.kt
Outdated
Show resolved
Hide resolved
app/src/sharedTest/java/org/oppia/app/testing/NavigationDrawerTestActivityTest.kt
Outdated
Show resolved
Hide resolved
* Fix #572: Keyboard visible by default in Admin Pin (#573) * By default keyboard visibility issue in Admin Pin is resolved * Created a test case to check about Keyboard visibility by default in Admin Pin. * Test is modified with the suggested changes * Fix #577: Display profile name on navigation drawer. (#578) * display profile name in navigation drawer * Updated code implementation * adding tests * added testcases * Update NavigationDrawerFragmentPresenter.kt * updated nit changes. * Fix part #44: Full UI profile pin/password screen. (#597) * done ui corrections * fixed issues. * Update pin_password_activity.xml * updated color * updated icon * updated pinview shadow * updated icon color * changed shadow * updated mock color * fix * Update pin_password_activity.xml * updated nit change. * Update pin_password_activity.xml * removed fixed width * fixed dimen file changes * Update dimens.xml * Fix part #632: Replace current recyclerview implementation with BindableAdapter usage. (#641) * working on topic practice. * reverted * updated implementation * Update ContinuePlayingFragmentPresenter.kt * Update ContinuePlayingFragmentPresenter.kt * Update ContinuePlayingItemViewModel.kt * Delete OngoingListAdapter.kt * nit change * Update ContinuePlayViewModel.kt * fixed nit * Add UI and finctionality for Switch Profile * Add UI Tests for switch profile option in navigation drawer * Add UI Tests for switch profile option in navigation drawer * Minor styling changes Co-authored-by: Akash Koradia <[email protected]> Co-authored-by: Veena <[email protected]>
Explanation
This PR displays profile name on navigation drawer as per selected profile.
Mock
https://xd.adobe.com/view/bee1fced-33bd-4f69-6a89-2c30fe1c4f65-c8d0/screen/42d3b9aa-8cb7-4ff0-b375-42117c3aed7e/PM-EN-Play-Tab-Side-Menu-
Screenshot
Checklist