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

Edit view not display #1

Open
vickyoo opened this issue May 12, 2021 · 2 comments
Open

Edit view not display #1

vickyoo opened this issue May 12, 2021 · 2 comments

Comments

@vickyoo
Copy link

vickyoo commented May 12, 2021

When i'm selct image then home screen display ..

@vickyoo vickyoo changed the title Crop view not display Edit view not display May 12, 2021
@JeremyRichardsonConsultant

I'm having the same issue, after selecting an image or video a dialog box with the text "Make sure to crop pictures appropriately otherwise the ticket sign-off will be rejected" then nothing happens.

@write2nihal
Copy link

write2nihal commented Sep 6, 2022

Hi @JeremyRichardsonConsultant I solved this issue. I know its late but might be helpful for any other who wants to access this library.

1-> Open PermissionUtils.kt this file and find function checkForCameraWritePermissions and replace this function with below code. and that's all.

fun checkForCameraWritePermissions(activity: FragmentActivity, permissionCall: PermissionCallback) {
            permissionCall.onPermission(true)
            val permissionsNeeded = ArrayList<String>()
            val permissionsList = ArrayList<String>()
            if (!addPermission(permissionsList, Manifest.permission.CAMERA, activity))
                permissionsNeeded.add("CAMERA")
            if (!addPermission(permissionsList, Manifest.permission.WRITE_EXTERNAL_STORAGE, activity))
                permissionsNeeded.add("WRITE_EXTERNAL_STORAGE")
            if (permissionsList.size > 0) {
                activity.requestPermissions(
                    permissionsList.toTypedArray(),
                    REQUEST_CODE_ASK_MULTIPLE_PERMISSIONS
                )
            } else {
                permissionCall.onPermission(true)
            }
}
`

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

No branches or pull requests

3 participants