Releases: hereisderek/android-util
Releases · hereisderek/android-util
remove work in progress code
accumulated release
some changes..
(and yes I'm being lazy)
lower min sdk version
0.2.6
0.2.5
- String/CharSequence sub or null
- Cursor.foreach
- IDbHelper
- Cursor?.isNullOrEmpty
migrade gradle to kotlin dsl and :refreshVersions
fix bugged onMainThread
0.2.1
-
CloseableSafe (not tested)
-
updated to
fun <T, C : Closeable> C?.useOrCreateAndClose, created fun <T> SQLiteDatabase.transaction(code: SQLiteDatabase.() -> T) : T?
,
fun <T> SQLiteDatabase.transaction(
throwException: Boolean = false,
code: SQLiteDatabase.() -> T
) : T?
0.2.0
- SingleFragmentActivity, upgraded lib version
- created and updated useOrCreateAndClose for closeable and fun Closeable?.closeQuiet(handler: ((Exception)->Unit)? = null)
0.1.12
- removed Cursor.toArrayList(block: (Cursor) -> T): ArrayList and fun Cursor.toArrayList(close: Boolean = false, block: (Cursor) -> T): ArrayList, you should just use the updated version of
inline fun Cursor.toArrayListIndexed(close: Boolean = false, block: Cursor.(index: Int) -> T): ArrayList instead. - added fun <K, V> Cursor.toArrayMapIndexed(close: Boolean = false, block: Cursor.(index: Int) -> Pair<K, V>) : Map<K, V>
- fix crash fun toUriIdFromContentUri()
- added setOnEditorActionListenerWithAction
0.1.11
0.1.10
added fun ImageUtil.getImageOrientation(context: Context, uri: Uri) : Int