Make TTS "Listen to an example" survive rotation.
Bug: 15019145 Change-Id: Id94e32947c58911ded3e4025653b415453cabbbb
This commit is contained in:
@@ -28,6 +28,7 @@ import android.app.AlertDialog;
|
|||||||
import android.content.ActivityNotFoundException;
|
import android.content.ActivityNotFoundException;
|
||||||
import android.content.ContentResolver;
|
import android.content.ContentResolver;
|
||||||
import android.content.Intent;
|
import android.content.Intent;
|
||||||
|
import android.os.AsyncTask;
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
import android.preference.ListPreference;
|
import android.preference.ListPreference;
|
||||||
import android.preference.Preference;
|
import android.preference.Preference;
|
||||||
@@ -164,6 +165,9 @@ public class TextToSpeechSettings extends SettingsPreferenceFragment implements
|
|||||||
|
|
||||||
setTtsUtteranceProgressListener();
|
setTtsUtteranceProgressListener();
|
||||||
initSettings();
|
initSettings();
|
||||||
|
|
||||||
|
// Prevent restarting the TTS connection on rotation
|
||||||
|
setRetainInstance(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Reference in New Issue
Block a user