ParkSangGwon / TedPermission

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

denniedmessage always show #53

Closed ivandiazmolina closed 7 years ago

ivandiazmolina commented 7 years ago

When I show the dialog, I click accept button and denied message show. How I can fix this?

I have try version 1.0.3 and 1.0.12 but I have got the same result

ParkSangGwon commented 7 years ago

@ivandiazmolina Can you show me your code?

ivandiazmolina commented 7 years ago

new TedPermission(this.activity) .setPermissionListener(new PermissionListener() { @Override public void onPermissionGranted() {

                    activity.viewPager.setCurrentItem(4);
                    activity.viewPager.setAllowedSwipeDirection(CustomViewPager.SwipeDirection.none);

                }

                @Override
                public void onPermissionDenied(ArrayList<String> deniedPermissions) {
                }
            })
            .setDeniedMessage(getResources().getString(R.string.alert_permiso))
            .setPermissions(Manifest.permission.ACCESS_FINE_LOCATION)
            .check();
ParkSangGwon commented 7 years ago

Hm... Can you upload your sample project?