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

Commit c27b0727 authored by tiansiming's avatar tiansiming Committed by android-build-merger
Browse files

Merge "Fix NPE when press ttsEngines settings icon" am: 4b6e1b07 am: 57b90397

am: 576e1596

Change-Id: I475b444fffea5a45532144bc85b7464979fa7a0d
parents 5ef1f502 576e1596
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -770,7 +770,11 @@ public class TextToSpeechSettings extends SettingsPreferenceFragment
        if (KEY_TTS_ENGINE_PREFERENCE.equals(p.getKey())) {
            EngineInfo info = mEnginesHelper.getEngineInfo(mCurrentEngine);
            final Intent settingsIntent = mEnginesHelper.getSettingsIntent(info.name);
            if (settingsIntent != null) {
                startActivity(settingsIntent);
            } else {
                Log.e(TAG, "settingsIntent is null");
            }
        }
    }