Fix a possible NPE
Change-Id: I5c57752772414b4f9475d0ad43d7fc52b97c3f33
This commit is contained in:
parent
b2f93c53db
commit
a770d650b5
1 changed files with 3 additions and 1 deletions
|
@ -336,7 +336,9 @@ public class Settings extends InputMethodSettingsActivity
|
|||
R.string.auto_correction_threshold_mode_index_off);
|
||||
final String currentSetting = mAutoCorrectionThresholdPreference.getValue();
|
||||
mBigramSuggestion.setEnabled(!currentSetting.equals(autoCorrectionOff));
|
||||
mBigramPrediction.setEnabled(!currentSetting.equals(autoCorrectionOff));
|
||||
if (null != mBigramPrediction) {
|
||||
mBigramPrediction.setEnabled(!currentSetting.equals(autoCorrectionOff));
|
||||
}
|
||||
}
|
||||
|
||||
public Activity getActivityInternal() {
|
||||
|
|
Loading…
Reference in a new issue