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