Fix: SpellChecker subtype label cannot be updated.

"Use system languages" is always displayed independent from the
selected value.
This happens due to inverted if-condition that has been introduced in
I0ed71bbb580e3547d97e321799ac2b77b1f284a3

Bug: 28204608
Change-Id: I9f0390242cb5ed4960c06eb3d0a4ade7a66143a5
This commit is contained in:
Keisuke Kuroyanagi
2016-04-16 09:13:15 +09:00
parent 490e40ecc8
commit de251d9713

View File

@@ -113,7 +113,7 @@ public class SpellCheckersSettings extends SettingsPreferenceFragment
mSwitchBar.setChecked(isSpellCheckerEnabled); mSwitchBar.setChecked(isSpellCheckerEnabled);
final SpellCheckerSubtype currentScs; final SpellCheckerSubtype currentScs;
if (mCurrentSci == null) { if (mCurrentSci != null) {
currentScs = mTsm.getCurrentSpellCheckerSubtype( currentScs = mTsm.getCurrentSpellCheckerSubtype(
false /* allowImplicitlySelectedSubtype */); false /* allowImplicitlySelectedSubtype */);
} else { } else {