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

Merge multiple versions of audio_language_fragment.xml #3997

Merged
merged 11 commits into from
Dec 31, 2021

Conversation

jashasweejena
Copy link
Contributor

Explanation

Fixes #3462 :

  • Unified multiple versions of audio_language_fragment.xml and put the resolution-specific values into their respective dimens.xml files.
  • Move Toolbar from audio_language_fragment.xml to audio_language_activity.xml

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).

For UI-specific PRs only

If your PR includes UI-related changes, then:

  • Add screenshots for portrait/landscape for both a tablet & phone of the before & after UI changes
  • For the screenshots above, include both English and pseudo-localized (RTL) screenshots (see RTL guide)
  • Add a video showing the full UX flow with a screen reader enabled (see accessibility guide)
  • Add a screenshot demonstrating that you ran affected Espresso tests locally & that they're passing

Screenshots

Mobile Portrait Before Mobile Portrait After
Mobile-Portrait-Before Mobile-Portrait-After
Mobile Landscape Before Mobile Landscape After
Mobile-Landscape-Before Mobile-Landscape-After
Tablet Portrait Before Tablet Portrait After
Tablet-Portrait-Before Tablet-Portrait-After
Tablet Landscape Before Tablet Landscape After
Tablet-Landscape-Before Tablet-Landscape-After

@rt4914
Copy link
Contributor

rt4914 commented Nov 24, 2021

@jashasweejena Apologies for the delay. Have you received any welcome email from a team-member? Have you been assigned a mentor yet?

@jashasweejena
Copy link
Contributor Author

@jashasweejena Apologies for the delay. Have you received any welcome email from a team-member? Have you been assigned a mentor yet?

Hey @rt4914, actually I haven't received any welcome mail yet nor have I been assigned a mentor.

@rt4914
Copy link
Contributor

rt4914 commented Nov 24, 2021

@jashasweejena Apologies for the delay. Have you received any welcome email from a team-member? Have you been assigned a mentor yet?

Hey @rt4914, actually I haven't received any welcome mail yet nor have I been assigned a mentor.

@jashasweejena Have you followed the steps mentioned here? Mainly survey form and CLA.
Checkout our wiki first. This will help you in setting up the project and once you sign the CLA and fill the survey form we can assign you issues to work on.

@jashasweejena
Copy link
Contributor Author

jashasweejena commented Nov 24, 2021

@jashasweejena Apologies for the delay. Have you received any welcome email from a team-member? Have you been assigned a mentor yet?

Hey @rt4914, actually I haven't received any welcome mail yet nor have I been assigned a mentor.

@jashasweejena Have you followed the steps mentioned here? Mainly survey form and CLA.
Checkout our wiki first. This will help you in setting up the project and once you sign the CLA and fill the survey form we can assign you issues to work on.

Yeah surely. Thanks for mentioning it. I'll make sure to fill those up.

@rt4914 rt4914 assigned bkaur-bkj and unassigned rt4914 Nov 26, 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.

@jashasweejena Added few comments.

@bkaur-bkj PTAL and please verify that the functionality is correct.

@jashasweejena
Copy link
Contributor Author

Hey @rt4914, thanks for the helpful comments. I will fix them asap.

@bkaur-bkj
Copy link
Contributor

@jashasweejena Added few comments.

@bkaur-bkj PTAL and please verify that the functionality is correct.

@rt4914 yes sir it works fine on phone, though not much aware of the databinding changes that needs to be done , so pls you just have a view over it.

@jashasweejena
Copy link
Contributor Author

Hey @rt4914, I completed the mentioned changes and pushed the code.

@bkaur-bkj
Copy link
Contributor

Hey @rt4914, I completed the mentioned changes and pushed the code.

@jashasweejena make sure you assign the reviewer and unassign yourself after completing your work

@bkaur-bkj
Copy link
Contributor

@jashasweejena you can just write PTAL @Reviewer

@bkaur-bkj
Copy link
Contributor

@jashasweejena link checks are failing maybe there is some indentation or spacing issue PTAL over it

@bkaur-bkj
Copy link
Contributor

@rt4914 PTAL

@bkaur-bkj bkaur-bkj assigned rt4914 and unassigned bkaur-bkj Dec 2, 2021
@jashasweejena
Copy link
Contributor Author

@jashasweejena you can just write PTAL @Reviewer

Thanks for informing. I'll take care next time onwards.

@jashasweejena
Copy link
Contributor Author

@jashasweejena link checks are failing maybe there is some indentation or spacing issue PTAL over it

Yeah sure, will take a look over it.

@oppiabot
Copy link

oppiabot bot commented Dec 2, 2021

Unassigning @jashasweejena since a re-review was requested. @jashasweejena, please make sure you have addressed all review comments. Thanks!

@jashasweejena
Copy link
Contributor Author

@rt4914 @bkaur-bkj Fixed the Ktlint issues. PTAL.

Thanks.

@rt4914
Copy link
Contributor

rt4914 commented Dec 7, 2021

@bkaur-bkj Will review it once you have approved it. Thanks.

app:layout_constraintTop_toBottomOf="@id/reading_list_app_bar_layout" />
</androidx.constraintlayout.widget.ConstraintLayout>

</layout>
Copy link
Contributor

Choose a reason for hiding this comment

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

@jashasweejena here you need to add a newline, as it says no newline at end of file. Just take cursor to last line and press enter

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed this in the latest commit. Thanks.

@rt4914 rt4914 removed their assignment Dec 8, 2021
Copy link
Contributor

@bkaur-bkj bkaur-bkj left a comment

Choose a reason for hiding this comment

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

@rt4914 sir, as per my trial it works thus approving it from myside, PTAL.

@bkaur-bkj bkaur-bkj assigned rt4914 and unassigned bkaur-bkj Dec 9, 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.

@jashasweejena Minor changes suggested. Otherwise LGTM.

@@ -12,7 +14,16 @@ class AudioLanguageActivityPresenter @Inject constructor(private val activity: A
private lateinit var prefSummaryValue: String

fun handleOnCreate(prefKey: String, prefValue: String) {
activity.setContentView(R.layout.audio_language_activity)
val binding = AudioLanguageActivityBinding.inflate(activity.layoutInflater, null, false)
Copy link
Contributor

Choose a reason for hiding this comment

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

Instead of this, use DataBindingUtil to use setContentView

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Refactored this to use DataBindingUtil and pushed the code.

Thanks

app/src/main/res/layout/audio_language_activity.xml Outdated Show resolved Hide resolved
app/src/main/res/layout/audio_language_activity.xml Outdated Show resolved Hide resolved
@rt4914
Copy link
Contributor

rt4914 commented Dec 10, 2021

@jashasweejena Please merge with latest develop too.

@rt4914 rt4914 assigned jashasweejena and unassigned rt4914 Dec 10, 2021
@jashasweejena
Copy link
Contributor Author

Done with the changes. PTAL @rt4914.

Thanks

@oppiabot oppiabot bot assigned rt4914 and unassigned jashasweejena Dec 11, 2021
@oppiabot
Copy link

oppiabot bot commented Dec 11, 2021

Unassigning @jashasweejena since a re-review was requested. @jashasweejena, please make sure you have addressed all review comments. Thanks!

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.

@oppiabot oppiabot bot unassigned rt4914 Dec 11, 2021
@oppiabot
Copy link

oppiabot bot commented Dec 11, 2021

Unassigning @rt4914 since they have already approved the PR.

@oppiabot oppiabot bot added the PR: LGTM label Dec 11, 2021
@BenHenning
Copy link
Sponsor Member

Hi. As of today, some main reviewers have taken time off for the next few weeks, so it may take a little while before we can look at this PR. We appreciate your patience while some of our team members recharge. We'll be fully returning on 4 January 2021.

@oppiabot
Copy link

oppiabot bot commented Dec 24, 2021

Hi @jashasweejena, I'm going to mark this PR as stale because it hasn't had any updates for 7 days. If no further activity occurs within 7 days, it will be automatically closed so that others can take up the issue.
If you are still working on this PR, please make a follow-up commit within 3 days (and submit it for review, if applicable). Please also let us know if you are stuck so we can help you!

@oppiabot oppiabot bot added the stale Corresponds to items that haven't seen a recent update and may be automatically closed. label Dec 24, 2021
@rt4914 rt4914 merged commit abe00c8 into oppia:develop Dec 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR: LGTM stale Corresponds to items that haven't seen a recent update and may be automatically closed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Merge audio_language_fragment into single xml file
4 participants