app/src/main/java/fr/free/nrw/commons/settings/SettingsFragment.java
private void requestExternalStoragePermissions() {
        Dexter.withActivity(getActivity())
                .withPermission(Manifest.permission.WRITE_EXTERNAL_STORAGE)
                .withListener(new BasePermissionListener() {
                    @Override
                    public void onPermissionGranted(PermissionGrantedResponse response) {
                        ViewUtil.showLongToast(getActivity(), getResources().getString(R.string.log_collection_started));
                    }
                }).check();
    }
/**
     * Requests external storage permissions and shows a toast stating that log collection has started
     */
Requests external storage permissions and shows a toast stating that log collection has started
Requests external storage permissions and shows a toast stating that log collection has started
private void requestExternalStoragePermissions() {
        Dexter.withActivity(getActivity())
                .withPermission(Manifest.permission.WRITE_EXTERNAL_STORAGE)
                .withListener(new BasePermissionListener() {
                    @Override
                    public void onPermissionGranted(PermissionGrantedResponse response) {
                        ViewUtil.showLongToast(getActivity(), getResources().getString(R.string.log_collection_started));
                    }
                }).check();
    }
private void requestExternalStoragePermissions ( ) { Dexter . withActivity ( getActivity ( ) ) . withPermission ( Manifest . permission . WRITE_EXTERNAL_STORAGE ) . withListener ( new BasePermissionListener ( ) { @ Override public void onPermissionGranted ( PermissionGrantedResponse response ) { ViewUtil . showLongToast ( getActivity ( ) , getResources ( ) . getString ( R . string . log_collection_started ) ) ; } } ) . check ( ) ; }
Requests external storage permissions and shows a toast stating that log collection has started
Requests external storage permissions and shows a toast stating that log collection has started