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

Sample/extend activity #81

Merged
merged 9 commits into from
Mar 4, 2021
Merged

Sample/extend activity #81

merged 9 commits into from
Mar 4, 2021

Conversation

Canato
Copy link
Member

@Canato Canato commented Mar 4, 2021

close #34
close #46

New Feature - 46

Description:

Create a new sample app that extend the Crop Activity, this help us for testing and keep the code quality on changes.

Bug

Cause:

After changing the code from java to Kotlin we moved the view reference to viewBinding, because of this we lost the ID reference.

Reproduce

GIVEN: Extend CropImageActivity
WHEN: call cropImage()
THEN: result.uri will be null

How the bug was solved:

So we need to create a function setCropImageView() that should be called when extending the activity to setup CropImageView not perfect, because the dev can forget to setup, but is a begin

Check list for the Code Reviewer:

  • CHANGELOG
  • README
  • Wiki
  • Version Number

@Canato Canato requested a review from loukwn March 4, 2021 21:09
@Canato Canato requested a review from a team as a code owner March 4, 2021 21:09
@Canato
Copy link
Member Author

Canato commented Mar 4, 2021

@loukwn I believe this change is what was need to change muzmatch into this library.

Was not working before, but now with the method setCropImageView(..) should work

@Canato Canato merged commit a730990 into main Mar 4, 2021
@Canato Canato deleted the sample/extend_activity branch March 4, 2021 21:19
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.

Sample project with custom activity [BUG] - Custom Activity CropImageActivity
1 participant