mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-11-23 18:15:30 +00:00
Removed duplicate helper
This commit is contained in:
parent
8d50dfd93c
commit
21ed759e53
@ -9,7 +9,6 @@ import android.content.pm.PackageManager
|
||||
import android.content.pm.PackageManager.*
|
||||
import android.net.Uri
|
||||
import android.provider.OpenableColumns
|
||||
import android.widget.Toast
|
||||
import com.topjohnwu.magisk.App
|
||||
import java.io.File
|
||||
import java.io.FileNotFoundException
|
||||
@ -102,10 +101,4 @@ fun File.mv(destination: File) {
|
||||
|
||||
fun String.toFile() = File(this)
|
||||
|
||||
fun Intent.chooser(title: String = "Pick an app") = Intent.createChooser(this, title)
|
||||
|
||||
fun Context.toast(message: Int, duration: Int = Toast.LENGTH_SHORT) =
|
||||
toast(getString(message), duration)
|
||||
|
||||
fun Context.toast(message: CharSequence, duration: Int = Toast.LENGTH_SHORT) =
|
||||
Toast.makeText(this, message, duration)
|
||||
fun Intent.chooser(title: String = "Pick an app") = Intent.createChooser(this, title)
|
Loading…
Reference in New Issue
Block a user