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

Commit 576e1596 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

Change-Id: Iae5884c2950e479c746e7b7761a40c250121dc16
parents e360d514 57b90397
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -777,7 +777,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");
            }
        }
    }