From 18b97efe5952e6f09771bb7c345a2d1bb49bfc2f Mon Sep 17 00:00:00 2001 From: Daniel Schnell Date: Wed, 21 Feb 2024 19:31:28 +0000 Subject: [PATCH] TTSManager: Fix modality of voice TTS settings dialog MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The voiceTTS settings activity had a wrong modality option when opened. Change intent flags from FLAG_ACTIIVITY_NEW_TASK to FLAG_ACTIVITY_NO_HISTORY. This will change the behaviour like this: - open activity on top of the TTSManager activity - close activity when navigating back - close activity when resuming by navigating back to Símarómur from another app / activity This fixes #143 Signed-off-by: Daniel Schnell --- app/src/main/java/com/grammatek/simaromur/TTSManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/grammatek/simaromur/TTSManager.java b/app/src/main/java/com/grammatek/simaromur/TTSManager.java index 5987fb2..8348368 100644 --- a/app/src/main/java/com/grammatek/simaromur/TTSManager.java +++ b/app/src/main/java/com/grammatek/simaromur/TTSManager.java @@ -190,7 +190,7 @@ public void onDestroy() { private void openTtsSettings() { Intent intent = new Intent(); intent.setAction("com.android.settings.TTS_SETTINGS"); - intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); + intent.setFlags(Intent.FLAG_ACTIVITY_NO_HISTORY); startActivity(intent); }