Skip to content

Commit 18b97ef

Browse files
committed
TTSManager: Fix modality of voice TTS settings dialog
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 <[email protected]>
1 parent 35dec2a commit 18b97ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/main/java/com/grammatek/simaromur/TTSManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ public void onDestroy() {
190190
private void openTtsSettings() {
191191
Intent intent = new Intent();
192192
intent.setAction("com.android.settings.TTS_SETTINGS");
193-
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
193+
intent.setFlags(Intent.FLAG_ACTIVITY_NO_HISTORY);
194194
startActivity(intent);
195195
}
196196

0 commit comments

Comments
 (0)