From 90c898db82d43581e9b9bb137b970ecb011cd670 Mon Sep 17 00:00:00 2001 From: Ruben Date: Wed, 29 Mar 2017 15:20:35 +0200 Subject: [PATCH] Always snapshots in kioskmode --- .../rubenvandeven/emotionhero/MirrorMenuActivity.java | 1 + .../java/com/rubenvandeven/emotionhero/Player.java | 10 ++++++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/com/rubenvandeven/emotionhero/MirrorMenuActivity.java b/app/src/main/java/com/rubenvandeven/emotionhero/MirrorMenuActivity.java index bd622de..14d37bc 100644 --- a/app/src/main/java/com/rubenvandeven/emotionhero/MirrorMenuActivity.java +++ b/app/src/main/java/com/rubenvandeven/emotionhero/MirrorMenuActivity.java @@ -100,6 +100,7 @@ public class MirrorMenuActivity extends AppCompatActivity implements Detector.Im highscoresButton .setTypeface(font); creditsButton .setTypeface(font); settingsButton.setTypeface(font); + settingsButton.setVisibility(View.INVISIBLE); // kiosk mode doesn't have settings messageText.setTypeface(font); nextButton.setTypeface(font); readyButton.setTypeface(font); diff --git a/app/src/main/java/com/rubenvandeven/emotionhero/Player.java b/app/src/main/java/com/rubenvandeven/emotionhero/Player.java index 9092837..2a7204a 100644 --- a/app/src/main/java/com/rubenvandeven/emotionhero/Player.java +++ b/app/src/main/java/com/rubenvandeven/emotionhero/Player.java @@ -64,13 +64,15 @@ public class Player { } public boolean hasSetSnapshotConfirm() { - SharedPreferences settings = c.getSharedPreferences(PREFS_NAME, 0); - return settings.contains("snapshot_confirm"); + return true; // this is kioskmode, always snapshot! +// SharedPreferences settings = c.getSharedPreferences(PREFS_NAME, 0); +// return settings.contains("snapshot_confirm"); } public boolean allowsSnapshots() { - SharedPreferences settings = c.getSharedPreferences(PREFS_NAME, 0); - return settings.getBoolean("snapshot_confirm", false); + return true; // this is kioskmode: always snapshot! +// SharedPreferences settings = c.getSharedPreferences(PREFS_NAME, 0); +// return settings.getBoolean("snapshot_confirm", false); } public void setAllowsSnapshots(boolean allows) {