From b2f9bbdf2cb141c166a85887b273c7863e4ca45e Mon Sep 17 00:00:00 2001 From: tibbi Date: Sat, 20 May 2017 08:56:28 +0200 Subject: [PATCH] remove the cursor extensions --- .../com/simplemobiletools/gallery/extensions/context.kt | 1 + .../com/simplemobiletools/gallery/extensions/cursor.kt | 7 ------- 2 files changed, 1 insertion(+), 7 deletions(-) delete mode 100644 app/src/main/kotlin/com/simplemobiletools/gallery/extensions/cursor.kt diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/extensions/context.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/extensions/context.kt index 410c54a17..9ecaec5d7 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/extensions/context.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/extensions/context.kt @@ -5,6 +5,7 @@ import android.content.Intent import android.database.Cursor import android.net.Uri import android.provider.MediaStore +import com.simplemobiletools.commons.extensions.getStringValue import com.simplemobiletools.commons.extensions.humanizePath import com.simplemobiletools.gallery.activities.SettingsActivity import com.simplemobiletools.gallery.helpers.Config diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/extensions/cursor.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/extensions/cursor.kt deleted file mode 100644 index 125de9983..000000000 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/extensions/cursor.kt +++ /dev/null @@ -1,7 +0,0 @@ -package com.simplemobiletools.gallery.extensions - -import android.database.Cursor - -fun Cursor.getStringValue(key: String) = getString(getColumnIndex(key)) - -fun Cursor.getLongValue(key: String) = getLong(getColumnIndex(key))