Fixed the migrations warning under Kotlin header #13282 (#6060)

* Fixed  Migration warnings under Kotlin header

* suppresses Lint

---------

Co-authored-by: Nicolas Raoul <nicolas.raoul@gmail.com>
This commit is contained in:
Sonal Yadav 2024-12-22 19:44:20 +05:30 committed by GitHub
parent f1e8e48769
commit b55c61ddb8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 28 additions and 20 deletions

View file

@ -55,7 +55,7 @@ class CustomSelectorUtils {
val uploadableFile = PickedFiles.pickedExistingPicture(context, image.uri)
val exifInterface: ExifInterface? =
try {
ExifInterface(uploadableFile.file!!)
ExifInterface(uploadableFile.file)
} catch (e: IOException) {
Timber.e(e)
null

View file

@ -62,6 +62,6 @@ object DownloadUtils {
) {
val systemService =
activity.getSystemService(Context.DOWNLOAD_SERVICE) as DownloadManager
systemService?.enqueue(req)
systemService.enqueue(req)
}
}