Remove a useless variable
This can be just read when it's needed. Change-Id: I00753fe55645c244db5d4a96e7fdb8f5325475d9main
parent
7208af0ecd
commit
2a659b8aa6
|
@ -186,7 +186,6 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar
|
||||||
private InputMethodManagerCompatWrapper mImm;
|
private InputMethodManagerCompatWrapper mImm;
|
||||||
private Resources mResources;
|
private Resources mResources;
|
||||||
private SharedPreferences mPrefs;
|
private SharedPreferences mPrefs;
|
||||||
private String mInputMethodId;
|
|
||||||
private KeyboardSwitcher mKeyboardSwitcher;
|
private KeyboardSwitcher mKeyboardSwitcher;
|
||||||
private SubtypeSwitcher mSubtypeSwitcher;
|
private SubtypeSwitcher mSubtypeSwitcher;
|
||||||
private VoiceProxy mVoiceProxy;
|
private VoiceProxy mVoiceProxy;
|
||||||
|
@ -496,7 +495,6 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar
|
||||||
super.onCreate();
|
super.onCreate();
|
||||||
|
|
||||||
mImm = InputMethodManagerCompatWrapper.getInstance();
|
mImm = InputMethodManagerCompatWrapper.getInstance();
|
||||||
mInputMethodId = Utils.getInputMethodId(mImm, getPackageName());
|
|
||||||
mSubtypeSwitcher = SubtypeSwitcher.getInstance();
|
mSubtypeSwitcher = SubtypeSwitcher.getInstance();
|
||||||
mKeyboardSwitcher = KeyboardSwitcher.getInstance();
|
mKeyboardSwitcher = KeyboardSwitcher.getInstance();
|
||||||
mVibrator = VibratorCompatWrapper.getInstance(this);
|
mVibrator = VibratorCompatWrapper.getInstance(this);
|
||||||
|
@ -2439,7 +2437,8 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar
|
||||||
switch (position) {
|
switch (position) {
|
||||||
case 0:
|
case 0:
|
||||||
Intent intent = CompatUtils.getInputLanguageSelectionIntent(
|
Intent intent = CompatUtils.getInputLanguageSelectionIntent(
|
||||||
mInputMethodId, Intent.FLAG_ACTIVITY_NEW_TASK
|
Utils.getInputMethodId(mImm, getPackageName()),
|
||||||
|
Intent.FLAG_ACTIVITY_NEW_TASK
|
||||||
| Intent.FLAG_ACTIVITY_RESET_TASK_IF_NEEDED
|
| Intent.FLAG_ACTIVITY_RESET_TASK_IF_NEEDED
|
||||||
| Intent.FLAG_ACTIVITY_CLEAR_TOP);
|
| Intent.FLAG_ACTIVITY_CLEAR_TOP);
|
||||||
startActivity(intent);
|
startActivity(intent);
|
||||||
|
|
Loading…
Reference in New Issue