permissions-dispatcher / PermissionsDispatcher

A declarative API to handle Android runtime permissions.
https://github.com/permissions-dispatcher/PermissionsDispatcher
Apache License 2.0
11.22k stars 1.44k forks source link

startActivity onResume it will infinite loop #696

Closed zdxiang closed 4 years ago

zdxiang commented 4 years ago

First , I had use PermissionCheck onStart, when I startActivity onResuem, it will loop. The activity is a empty activity. I need to start it onResume。

90 I have check many times, not suitable for my situation

hotchemi commented 4 years ago

startActivity onResuem

I wonder this is not our library's issue? could you elaborate more with pseudo code?

zdxiang commented 4 years ago

@hotchemi Thank you for your time.
Just like this:

override fun onResume() {
        super.onResume()
        val intent = Intent(this, Just4TestActivity::class.java)
        startActivity(intent)
    }
hotchemi commented 4 years ago

seems like https://github.com/permissions-dispatcher/PermissionsDispatcher/issues/696#issuecomment-731900971 is not related to the library. let me close the issue.