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

Commit 0c79183f authored by Frank Preel's avatar Frank Preel
Browse files

Test for switching to precise keyboard

parent 4aac6d69
Loading
Loading
Loading
Loading
+8 −2
Original line number Diff line number Diff line
@@ -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);
@@ -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 {