update filepicker to 1.3.15

This commit is contained in:
tibbi 2016-11-12 15:42:47 +01:00
parent 7a7c427136
commit 75231e8f9b
5 changed files with 1 additions and 36 deletions

View File

@ -43,7 +43,7 @@ dependencies {
compile 'com.android.support:design:23.4.0'
compile 'com.jakewharton:butterknife:8.0.1'
compile 'com.github.bumptech.glide:glide:3.7.0'
compile 'com.simplemobiletools:filepicker:1.3.12@aar'
compile 'com.simplemobiletools:filepicker:1.3.15@aar'
compile 'com.simplemobiletools:fileproperties:1.0.2@aar'
compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"

View File

@ -1,5 +0,0 @@
package com.simplemobiletools.filemanager.extensions
import android.widget.EditText
val EditText.value: String get() = this.text.toString().trim()

View File

@ -1,16 +0,0 @@
package com.simplemobiletools.filemanager.extensions
import android.content.res.Resources
import android.graphics.*
fun Resources.getColoredIcon(colorId: Int, resId: Int): Bitmap {
val options = BitmapFactory.Options()
options.inMutable = true
val bitmap = BitmapFactory.decodeResource(this, resId, options)
val paint = Paint()
val filter = PorterDuffColorFilter(getColor(colorId), PorterDuff.Mode.SRC_IN)
paint.colorFilter = filter
val canvas = Canvas(bitmap)
canvas.drawBitmap(bitmap, 0f, 0f, paint)
return bitmap
}

View File

@ -1,9 +0,0 @@
package com.simplemobiletools.filemanager.extensions
import java.util.regex.Pattern
fun String.isValidFilename(): Boolean {
val pattern = Pattern.compile("^[-_.A-Za-z0-9()#& ]+$")
val matcher = pattern.matcher(this)
return matcher.matches()
}

View File

@ -1,5 +0,0 @@
package com.simplemobiletools.filemanager.extensions
import android.widget.TextView
val TextView.value: String get() = this.text.toString().trim()