Android: Use alert not toast for BIOS import error

This commit is contained in:
Connor McLaughlin 2020-10-14 19:04:47 +10:00
parent e5cdb7751b
commit d950779662
1 changed files with 5 additions and 1 deletions

View File

@ -314,7 +314,11 @@ public class MainActivity extends AppCompatActivity {
}
}
} catch (IOException e) {
Toast.makeText(this, "Failed to read BIOS image: " + e.getMessage(), Toast.LENGTH_LONG);
new AlertDialog.Builder(this)
.setMessage("Failed to read BIOS image: " + e.getMessage())
.setPositiveButton("OK", (dialog, button) -> {})
.create()
.show();
return;
}