Commit 21ed759e authored by Viktor De Pasquale's avatar Viktor De Pasquale Committed by John Wu

Removed duplicate helper

parent 8d50dfd9
...@@ -9,7 +9,6 @@ import android.content.pm.PackageManager ...@@ -9,7 +9,6 @@ import android.content.pm.PackageManager
import android.content.pm.PackageManager.* import android.content.pm.PackageManager.*
import android.net.Uri import android.net.Uri
import android.provider.OpenableColumns import android.provider.OpenableColumns
import android.widget.Toast
import com.topjohnwu.magisk.App import com.topjohnwu.magisk.App
import java.io.File import java.io.File
import java.io.FileNotFoundException import java.io.FileNotFoundException
...@@ -102,10 +101,4 @@ fun File.mv(destination: File) { ...@@ -102,10 +101,4 @@ fun File.mv(destination: File) {
fun String.toFile() = File(this) fun String.toFile() = File(this)
fun Intent.chooser(title: String = "Pick an app") = Intent.createChooser(this, title) fun Intent.chooser(title: String = "Pick an app") = Intent.createChooser(this, title)
\ No newline at end of file
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)
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment