22 lines
691 B
Kotlin
22 lines
691 B
Kotlin
package eu.depau.etchdroid.activities
|
|
|
|
import android.os.Bundle
|
|
import androidx.appcompat.app.AppCompatActivity
|
|
import eu.depau.etchdroid.R
|
|
import kotlinx.android.synthetic.main.activity_error.*
|
|
|
|
class ErrorActivity : AppCompatActivity() {
|
|
|
|
override fun onCreate(savedInstanceState: Bundle?) {
|
|
super.onCreate(savedInstanceState)
|
|
setContentView(R.layout.activity_error)
|
|
val msg = intent.getStringExtra("error")
|
|
error_message.text = msg
|
|
|
|
if ("errno 88" in msg)
|
|
troubleshooting_info.text = getString(R.string.troubleshoot_sock_op_on_non_sock)
|
|
else
|
|
troubleshooting_info.text = getString(R.string.unknown_error)
|
|
}
|
|
}
|