Skip to content

Commit

Permalink
Removed duplicate helper
Browse files Browse the repository at this point in the history
  • Loading branch information
diareuse authored and topjohnwu committed Jul 20, 2019
1 parent 8d50dfd commit 21ed759
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions app/src/main/java/com/topjohnwu/magisk/utils/XAndroid.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)

0 comments on commit 21ed759

Please sign in to comment.