Skip to content
This repository has been archived by the owner on Oct 18, 2022. It is now read-only.

Commit

Permalink
Disable error dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
bvolkmer committed Oct 16, 2017
1 parent f461df7 commit a883fd0
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions android/src/main/java/de/x4fyr/paiman/app/utils.kt
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ import android.view.MenuItem
import android.view.View
import de.x4fyr.paiman.R
import de.x4fyr.paiman.lib.adapter.AndroidGoogleDriveStorageAdapter
import kotlinx.coroutines.experimental.android.UI
import kotlinx.coroutines.experimental.launch
import java.io.File
import java.io.InputStream
import javax.inject.Inject
Expand Down Expand Up @@ -103,12 +101,12 @@ suspend fun Activity.getInputStreamFromUrl(url: String): InputStream? {

/** Error [AlertDialog] */
fun Activity.errorDialog(msg: Int) {
launch(UI) {
AlertDialog.Builder(this@errorDialog)
.setMessage(msg)
.create()
.show()
}
//launch(UI) {
// AlertDialog.Builder(this@errorDialog)
// .setMessage(msg)
// .create()
// .show()
//}
}

/**
Expand Down

0 comments on commit a883fd0

Please sign in to comment.