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

Commit a770d650 authored by Jean Chalard's avatar Jean Chalard
Browse files

Fix a possible NPE

Change-Id: I5c57752772414b4f9475d0ad43d7fc52b97c3f33
parent b2f93c53
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -336,8 +336,10 @@ public class Settings extends InputMethodSettingsActivity
                R.string.auto_correction_threshold_mode_index_off);
        final String currentSetting = mAutoCorrectionThresholdPreference.getValue();
        mBigramSuggestion.setEnabled(!currentSetting.equals(autoCorrectionOff));
        if (null != mBigramPrediction) {
            mBigramPrediction.setEnabled(!currentSetting.equals(autoCorrectionOff));
        }
    }

    public Activity getActivityInternal() {
        Object thisObject = (Object) this;