app/src/main/java/fr/free/nrw/commons/settings/SettingsFragment.java
private void checkPermissionsAndSendLogs() {
        if (PermissionUtils.hasPermission(getActivity(), Manifest.permission.WRITE_EXTERNAL_STORAGE)) {
            commonsLogSender.send(getActivity(), null);
        } else {
            requestExternalStoragePermissions();
        }
    }
/**
     * First checks for external storage permissions and then sends logs via email
     */
First checks for external storage permissions and then sends logs via email
First checks for external storage permissions and then sends logs via email
private void checkPermissionsAndSendLogs() {
        if (PermissionUtils.hasPermission(getActivity(), Manifest.permission.WRITE_EXTERNAL_STORAGE)) {
            commonsLogSender.send(getActivity(), null);
        } else {
            requestExternalStoragePermissions();
        }
    }
private void checkPermissionsAndSendLogs ( ) { if ( PermissionUtils . hasPermission ( getActivity ( ) , Manifest . permission . WRITE_EXTERNAL_STORAGE ) ) { commonsLogSender . send ( getActivity ( ) , null ) ; } else { requestExternalStoragePermissions ( ) ; } }
First checks for external storage permissions and then sends logs via email
First checks for external storage permissions and then sends logs via email