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

Fixes #3900 : Added toolbar to exit ProfilePictureActivity #3918

Merged

Conversation

bkaur-bkj
Copy link
Contributor

@bkaur-bkj bkaur-bkj commented Oct 9, 2021

Explanation

Fixes #3900: Added toolbar to exit the ProfilePictureActivity

Essential Checklist

  • The PR title and explanation each start with "Fix #bugnum: " (If this PR fixes part of an issue, prefix the title with "Fix part of #bugnum: ...".)
  • Any changes to scripts/assets files have their rationale included in the PR explanation.
  • The PR follows the style guide.
  • The PR does not contain any unnecessary code changes from Android Studio (reference).
  • The PR is made from a branch that's not called "develop" and is up-to-date with "develop".
  • The PR is assigned to the appropriate reviewers (reference).

After adding the toolbar and shadow

WhatsApp Image 2021-10-16 at 7 29 15 PM

Copy link
Sponsor Member

@BenHenning BenHenning left a comment

Choose a reason for hiding this comment

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

Thanks @bkaur-bkj. Left some initial thoughts--PTAL.

@BenHenning BenHenning assigned bkaur-bkj and unassigned BenHenning Oct 12, 2021
@bkaur-bkj bkaur-bkj assigned BenHenning and unassigned bkaur-bkj Oct 12, 2021
Copy link
Sponsor Member

@BenHenning BenHenning left a comment

Choose a reason for hiding this comment

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

Thanks @bkaur-bkj. I think the approach overall LGTM. The main gap yet is ensuring that we have tests to ensure that this stays working long-term.

@BenHenning BenHenning assigned bkaur-bkj and unassigned BenHenning Oct 13, 2021
@bkaur-bkj
Copy link
Contributor Author

@rt4914 @BenHenning Sir as said I have tried adding the test case for the above cases of checking title and back button working but as I am not aware much of writing test cases my case for action button check is getting failed, can you pls help what should I change here.

@bkaur-bkj bkaur-bkj assigned BenHenning and unassigned bkaur-bkj Oct 13, 2021
Copy link
Sponsor Member

@BenHenning BenHenning left a comment

Choose a reason for hiding this comment

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

Thanks @bkaur-bkj. Just had a few other comments. Beyond that:

  • Fix part of #3602: Added label for ProfilePictureActivity #3881 was just merged; could you sync this PR with the latest develop changes, address the conflict, and update the PR to use the activity title string introduced in that PR, instead (so that we don't need to duplicate it)?
  • I see there was a lint error. Do you have your local Git repository set up with the pre-push hook to catch lint errors? If not, you should run setup.sh locally as explained here. That will ensure lint failures are caught before pushing which will help you discover & fix them more quickly (i.e. without needing to wait for CI or running them manually).

@BenHenning
Copy link
Sponsor Member

Also, @bkaur-bkj please make sure that you respond to all comments before sending a PR back for review. It's important to make it clear to reviewers that you've explicitly addressed a comment so that we know to check for it being resolved in our next review round.

@BenHenning BenHenning assigned bkaur-bkj and unassigned BenHenning Oct 14, 2021
@bkaur-bkj
Copy link
Contributor Author

Also, @bkaur-bkj please make sure that you respond to all comments before sending a PR back for review. It's important to make it clear to reviewers that you've explicitly addressed a comment so that we know to check for it being resolved in our next review round.

okay sorry for not replying last time

Copy link
Contributor

@rt4914 rt4914 left a comment

Choose a reason for hiding this comment

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

@bkaur-bkj PTAL

layout="@layout/toolbar"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
Copy link
Contributor

Choose a reason for hiding this comment

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

Lets make it a bit simple.
Instead of using include, write code similar to this

<com.google.android.material.appbar.AppBarLayout

This way you can actually remove a lot of kotlin code.

Also from the same link above you will need to introduce [View](

) in your xml to show the shadow below the toolbar.

Copy link
Contributor

Choose a reason for hiding this comment

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

FYI I have suggested to remove include because we won't be using them in future in our code as per #3746

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Okay sir done

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@rt4914 I have made these changes and also the one asked for adding tests, but still the test fails and I have no clue how to modify them.

@rt4914 rt4914 removed their assignment Oct 14, 2021
@bkaur-bkj bkaur-bkj assigned BenHenning and rt4914 and unassigned bkaur-bkj Oct 15, 2021
@bkaur-bkj
Copy link
Contributor Author

@BenHenning @rt4914 PTAL

@BenHenning
Copy link
Sponsor Member

Sorry, I'll need to review this on Monday.

Copy link
Contributor

@rt4914 rt4914 left a comment

Choose a reason for hiding this comment

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

@bkaur-bkj PTAL thanks.

@rt4914 rt4914 assigned bkaur-bkj and unassigned rt4914 and BenHenning Oct 16, 2021
@bkaur-bkj
Copy link
Contributor Author

bkaur-bkj commented Oct 16, 2021

@rt4914 PTAL I made the changes requested and have also added the updated screenshot , but with just that naming changes one check is failing and I unable to resolve it

@bkaur-bkj bkaur-bkj assigned rt4914 and unassigned bkaur-bkj Oct 16, 2021
Copy link
Contributor

@rt4914 rt4914 left a comment

Choose a reason for hiding this comment

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

@bkaur-bkj PTAL at one comment.

Copy link
Sponsor Member

@BenHenning BenHenning left a comment

Choose a reason for hiding this comment

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

Thanks @bkaur-bkj. LGTM!

@BenHenning
Copy link
Sponsor Member

Restarting Gradle run since it was a Java 8 flake.

@BenHenning BenHenning removed their assignment Oct 19, 2021
@bkaur-bkj
Copy link
Contributor Author

@rt4914 PTAL I have removed the unnecessary part of toolbar

@bkaur-bkj bkaur-bkj assigned rt4914 and unassigned bkaur-bkj Oct 20, 2021
Copy link
Contributor

@rt4914 rt4914 left a comment

Choose a reason for hiding this comment

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

LGTM, thanks.

@rt4914 rt4914 merged commit 43aee2e into oppia:develop Oct 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[A11Y] Unable to exit ProfilePictureActivity from screen-reader
3 participants