mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-29 13:53:54 +01:00
* Fixed Migration warnings under Kotlin header * suppresses Lint --------- Co-authored-by: Nicolas Raoul <nicolas.raoul@gmail.com>
This commit is contained in:
parent
f1e8e48769
commit
b55c61ddb8
13 changed files with 28 additions and 20 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -62,6 +62,6 @@ object DownloadUtils {
|
|||
) {
|
||||
val systemService =
|
||||
activity.getSystemService(Context.DOWNLOAD_SERVICE) as DownloadManager
|
||||
systemService?.enqueue(req)
|
||||
systemService.enqueue(req)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue