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

fix #2142: migrated guarantor related fragments to viewbinding #2159

Conversation

PratyushSingh07
Copy link
Collaborator

@PratyushSingh07 PratyushSingh07 commented Jun 5, 2023

Fixes #2142

vidma_recorder_04062023_001804.mp4

Please Add Screenshots If there are any UI changes.

Please make sure these boxes are checked before submitting your pull request - thanks!

  • Apply the AndroidStyle.xml style template to your code in Android Studio.

  • Run the unit tests with ./gradlew check to make sure you didn't break anything

  • If you have multiple commits please combine them into one commit by squashing them.

@PratyushSingh07
Copy link
Collaborator Author

do review this @gururani-abhishek !!

Copy link
Contributor

@gururani-abhishek gururani-abhishek left a comment

Choose a reason for hiding this comment

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

Looks solid!! good job.

binding.tilFirstName.editText?.setText(payload?.firstname)
binding.tilLastName.editText?.setText(payload?.lastname)
binding.tilOfficeName.editText?.setText(payload?.officeName)
(binding.guarantorTypeField.editText as? MaterialAutoCompleteTextView)?.setText(payload?.guarantorType?.value!!)

}

Copy link
Contributor

Choose a reason for hiding this comment

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

It seems findPreviouslySelectedGurantorType() is not being used anywhere, can be removed after a thorough usage check.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

done @gururani-abhishek , I have also used with(binding)

.setMessage(getString(R.string.dialog_are_you_sure_that_you_want_to_string,
getString(R.string.delete_guarantor)))
.setPositiveButton(getString(R.string.yes),
DialogInterface.OnClickListener { _, _ ->
Copy link
Contributor

Choose a reason for hiding this comment

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

This redundant SAM constructor can be reformat. Please have a look.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

done

@PratyushSingh07
Copy link
Collaborator Author

Hey @jawidMuhammadi kindly review this as well

Copy link
Contributor

@jawidMuhammadi jawidMuhammadi left a comment

Choose a reason for hiding this comment

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

LGTM!

@jawidMuhammadi jawidMuhammadi merged commit 7c30f64 into openMF:migrate_to_view_binding Jun 11, 2023
3 checks passed
@PratyushSingh07 PratyushSingh07 deleted the migrate-guarantor branch June 11, 2023 17:15
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.

None yet

3 participants