From 2cd1be791a03fe92753b0913c4cffd336c591945 Mon Sep 17 00:00:00 2001 From: Aaron Culliney Date: Sat, 29 Aug 2015 10:10:12 -0700 Subject: [PATCH] FTUE: add a button to load disk image on splash screen --- .../deadc0de/apple2ix/Apple2SplashScreen.java | 10 +++ .../res/layout/activity_splash_screen.xml | 64 +++++++++++-------- Android/app/src/main/res/values/strings.xml | 1 + 3 files changed, 49 insertions(+), 26 deletions(-) diff --git a/Android/app/src/main/java/org/deadc0de/apple2ix/Apple2SplashScreen.java b/Android/app/src/main/java/org/deadc0de/apple2ix/Apple2SplashScreen.java index 48493ed7..d8dac372 100644 --- a/Android/app/src/main/java/org/deadc0de/apple2ix/Apple2SplashScreen.java +++ b/Android/app/src/main/java/org/deadc0de/apple2ix/Apple2SplashScreen.java @@ -51,6 +51,16 @@ public class Apple2SplashScreen implements Apple2MenuView { Apple2SplashScreen.this.dismiss(); } }); + + Button disksButton = (Button) mSettingsView.findViewById(R.id.disksButton); + disksButton.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View v) { + Apple2DisksMenu disksMenu = mActivity.getMainMenu().getDisksMenu(); + disksMenu.show(); + Apple2SplashScreen.this.dismiss(); + } + }); } public final boolean isCalibrating() { diff --git a/Android/app/src/main/res/layout/activity_splash_screen.xml b/Android/app/src/main/res/layout/activity_splash_screen.xml index b0cdbc12..d968ba24 100644 --- a/Android/app/src/main/res/layout/activity_splash_screen.xml +++ b/Android/app/src/main/res/layout/activity_splash_screen.xml @@ -18,30 +18,6 @@ android:src="@drawable/apple_iie" android:id="@+id/splashView" /> -