ParkSangGwon / TedPermission

Easy check permission library for Android Marshmallow
1.74k stars 239 forks source link

Activity is closed but dialog permission is showed #29

Closed amaydiam closed 5 years ago

amaydiam commented 7 years ago

I call this fuction on created method, but Activity is closed but dialog permission is showed. Please fix it `@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_splash);

    new TedPermission(this)
            .setPermissionListener(permissionScanQrcodeListener)
            .setDeniedMessage("Permission dibutuhkan untuk Mode Offline.\nHidupkan permission WRITE_EXTERNAL_STORAGE pada [Setting] > [Permission]")
            .setPermissions(Manifest.permission.WRITE_EXTERNAL_STORAGE)
            .check();
}`
ParkSangGwon commented 7 years ago

@amaydiam Did you mean activity was destroyed but dialog is still shown? Request permission dialog is google's dialog. So I think we can not control that dialog.

sion1116 commented 7 years ago

TedPermission를 사용하는 Activity의 android:noHistory="true"이면 동일한 현상이 나타나더군요.