Karumi / Dexter

Android library that simplifies the process of requesting permissions at runtime.
http://karumi.com
Apache License 2.0
5.23k stars 671 forks source link

Dexter activity slows app #185

Open flaquir4 opened 6 years ago

flaquir4 commented 6 years ago

Expected behaviour

Launch new Activity and a dialog shows requesting permissions, without any frame dropped.

Actual behaviour

Launch new activity and Choreographer says that the applications is doing to much work and skypes 340 frames.

Also the Android profiler shows that DexterActivity stays on during 5 seconds

image

Steps to reproduce

I don't know, it happens with nexus 6p and pixel c but not with emulator or galaxy s8+

Version of the library

4.1.1

Serchinastico commented 6 years ago

Hi @flaquir4

The Android activity might live longer than that depending on a lot of things, the skipped frames shouldn't happen though, do you know if it happens in the Dexter sample project as well?

flaquir4 commented 6 years ago

I don't know why but the problems appear when I have a progressbar in the activity which request the permission.

It seems a bit strange but I upload the example modified in order to show the problem.

Dexter.zip