mirror of
https://github.com/SimpleMobileTools/Simple-File-Manager.git
synced 2025-01-20 21:01:21 +01:00
update filepicker to 1.3.15
This commit is contained in:
parent
7a7c427136
commit
75231e8f9b
@ -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"
|
||||
|
||||
|
@ -1,5 +0,0 @@
|
||||
package com.simplemobiletools.filemanager.extensions
|
||||
|
||||
import android.widget.EditText
|
||||
|
||||
val EditText.value: String get() = this.text.toString().trim()
|
@ -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
|
||||
}
|
@ -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()
|
||||
}
|
@ -1,5 +0,0 @@
|
||||
package com.simplemobiletools.filemanager.extensions
|
||||
|
||||
import android.widget.TextView
|
||||
|
||||
val TextView.value: String get() = this.text.toString().trim()
|
Loading…
Reference in New Issue
Block a user