Loading java/src/com/android/inputmethod/latin/LatinIME.java +8 −2 Original line number Diff line number Diff line Loading @@ -866,6 +866,10 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen mIsHardwareAcceleratedDrawingEnabled); } public void switchToSttIme() { switchInputMethod("foundation.e.stt/.MurenaWhisperInputService:"); } @Override public void setInputView(final View view) { super.setInputView(view); Loading @@ -879,12 +883,14 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen ImageButton floatingButton = view.findViewById(R.id.floating_button); if (floatingButton != null) { if (isSetupWizardFinished() && (accountIsPremium(getApplicationContext()) || accountIsPremiumFromIME())) { //if (isSetupWizardFinished() && (accountIsPremium(getApplicationContext()) || accountIsPremiumFromIME())) { if (true) { floatingButton.setVisibility(View.VISIBLE); floatingButton.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { switchToNextInputMethod(); //switchToNextInputMethod(); switchToSttIme(); } }); } else { Loading Loading
java/src/com/android/inputmethod/latin/LatinIME.java +8 −2 Original line number Diff line number Diff line Loading @@ -866,6 +866,10 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen mIsHardwareAcceleratedDrawingEnabled); } public void switchToSttIme() { switchInputMethod("foundation.e.stt/.MurenaWhisperInputService:"); } @Override public void setInputView(final View view) { super.setInputView(view); Loading @@ -879,12 +883,14 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen ImageButton floatingButton = view.findViewById(R.id.floating_button); if (floatingButton != null) { if (isSetupWizardFinished() && (accountIsPremium(getApplicationContext()) || accountIsPremiumFromIME())) { //if (isSetupWizardFinished() && (accountIsPremium(getApplicationContext()) || accountIsPremiumFromIME())) { if (true) { floatingButton.setVisibility(View.VISIBLE); floatingButton.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { switchToNextInputMethod(); //switchToNextInputMethod(); switchToSttIme(); } }); } else { Loading