From d950779662fb4886a8ec2a3fd53b616d84f6f289 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Wed, 14 Oct 2020 19:04:47 +1000 Subject: [PATCH] Android: Use alert not toast for BIOS import error --- .../java/com/github/stenzek/duckstation/MainActivity.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/android/app/src/main/java/com/github/stenzek/duckstation/MainActivity.java b/android/app/src/main/java/com/github/stenzek/duckstation/MainActivity.java index afee15fcf..f6425c2a3 100644 --- a/android/app/src/main/java/com/github/stenzek/duckstation/MainActivity.java +++ b/android/app/src/main/java/com/github/stenzek/duckstation/MainActivity.java @@ -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; }