Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3b60858e authored by Przemyslaw Szczepaniak's avatar Przemyslaw Szczepaniak
Browse files

Make TTS "Listen to an example" survive rotation.

Bug: 15019145

Change-Id: Id94e32947c58911ded3e4025653b415453cabbbb
parent 238d40d2
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -28,6 +28,7 @@ import android.app.AlertDialog;
import android.content.ActivityNotFoundException;
import android.content.ContentResolver;
import android.content.Intent;
import android.os.AsyncTask;
import android.os.Bundle;
import android.preference.ListPreference;
import android.preference.Preference;
@@ -164,6 +165,9 @@ public class TextToSpeechSettings extends SettingsPreferenceFragment implements

        setTtsUtteranceProgressListener();
        initSettings();

        // Prevent restarting the TTS connection on rotation
        setRetainInstance(true);
    }

    @Override