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

Toolbar Done button visibility. #347

Merged
merged 2 commits into from Apr 8, 2021

Conversation

dilip786
Copy link
Contributor

@dilip786 dilip786 commented Apr 2, 2021

Added a new variable in ImagePickerConfig.kt Whether to show Done button or not always, We already had a chat on this and here is the bug link [(https://github.com//issues/339 )].

This is blocker to my release, Please have a look and let me know if you need any changes.

@@ -40,4 +40,8 @@ object ConfigUtils {
val doneButtonText = config.doneButtonText
return if (doneButtonText.isNullOrBlank()) context.getString(R.string.ef_done) else doneButtonText
}

fun getDoneButtonTextVisibility(config: ImagePickerConfig): Boolean {
Copy link
Owner

Choose a reason for hiding this comment

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

You don't need helper function if it just accessing a property

@@ -7,4 +7,5 @@ abstract class BaseConfig {
abstract var savePath: ImagePickerSavePath
abstract var returnMode: ReturnMode
abstract var isSaveImage: Boolean
abstract var showDoneButtonAlways: Boolean
Copy link
Owner

Choose a reason for hiding this comment

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

I think you should only add this in ImagePickerConfig since it's not affecting CameraOnly functionality?

Copy link
Contributor Author

@dilip786 dilip786 left a comment

Choose a reason for hiding this comment

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

Updated code as per your request.

@dilip786
Copy link
Contributor Author

dilip786 commented Apr 6, 2021

@esafirm Can you please have a look at my pr as this is blocker to my release. thanks in advance.

@esafirm
Copy link
Owner

esafirm commented Apr 8, 2021

LGTM 👍 Thanks for the PR @dilip786

@esafirm esafirm merged commit 2b9db5b into esafirm:main Apr 8, 2021
@esafirm
Copy link
Owner

esafirm commented Apr 8, 2021

Packagin this as 3.0.0-alpha2 @dilip786

@dilip786
Copy link
Contributor Author

dilip786 commented Apr 8, 2021 via email

@dilip786
Copy link
Contributor Author

dilip786 commented Apr 8, 2021

Hey, Unable to import this package 3.0.0-alpha2, When i try to Gradle Sync, the Dependency is not resolvable.. Can you help on this pls

image

image

@esafirm
Copy link
Owner

esafirm commented May 16, 2021

The artifact is now com.github.esafirm:android-image-picker:x.y.z
Sorry for the late response

@yravid
Copy link

yravid commented Jul 29, 2021

Can it be released also as part of the v2 release train? Thank you @esafirm 🥇

india2sarthak pushed a commit to india2sarthak/android-image-picker that referenced this pull request Sep 1, 2023
* Added a new variable in ImagePickerConfig.kt Whether to show Done button always or not.

* Code cleanup
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