fondesa / kpermissions

A Kotlin library which helps to request runtime permissions in Android.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Does ConcurrentModificationException occur only with my usage or it is common error?

zhombie opened this issue · comments

Screenshot 2021-12-18 at 04 08 03

I think the problem with removeListener, which triggers BasePermissionRequest#removeListener() method on its parallel usage at RuntimePermissionRequest#onPermissionsResult() forEach {}

Screenshot 2021-12-18 at 04 17 57

Hi, thanks for your submission.

I have few questions to be able to reproduce this:

  1. Are you attaching multiple listeners to the same request?
  2. Does it happen consistently or only randomly?
  3. Can you share the usage of that API to help me reproducing it?

NVM, I'm fixing this for all the cases: #289

The fix will be available from the next release