From 21ed759e5307ed1508b63111f291fee9207bc7ee Mon Sep 17 00:00:00 2001 From: Viktor De Pasquale Date: Wed, 10 Jul 2019 18:44:05 +0200 Subject: [PATCH] Removed duplicate helper --- app/src/main/java/com/topjohnwu/magisk/utils/XAndroid.kt | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/app/src/main/java/com/topjohnwu/magisk/utils/XAndroid.kt b/app/src/main/java/com/topjohnwu/magisk/utils/XAndroid.kt index 66c959155..beab751ea 100644 --- a/app/src/main/java/com/topjohnwu/magisk/utils/XAndroid.kt +++ b/app/src/main/java/com/topjohnwu/magisk/utils/XAndroid.kt @@ -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) \ No newline at end of file +fun Intent.chooser(title: String = "Pick an app") = Intent.createChooser(this, title) \ No newline at end of file