Migrated logging module from Java to Kotlin (#5972)

* Migrated logging module from Java to Kotlin

* Rename .java to .kt

---------

Co-authored-by: Nicolas Raoul <nicolas.raoul@gmail.com>
This commit is contained in:
Saifuddin Adenwala 2024-11-29 10:20:33 +05:30 committed by GitHub
parent 1afff73c24
commit d6c4cab207
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 500 additions and 508 deletions

View file

@ -1,6 +1,7 @@
package fr.free.nrw.commons.settings
import android.Manifest.permission
import android.annotation.SuppressLint
import android.app.Activity
import android.app.Dialog
import android.content.Context.MODE_PRIVATE
@ -527,7 +528,7 @@ class SettingsFragment : PreferenceFragmentCompat() {
PermissionUtils.PERMISSIONS_STORAGE
)
) {
commonsLogSender.send(requireActivity(), null)
commonsLogSender.sendWithNullable(requireActivity(), null)
} else {
requestExternalStoragePermissions()
}