这是indexloc提供的服务,不要输入任何密码
Skip to content

[Bug]: hardware keyboard workaround not working #648

@knyipab

Description

@knyipab

Problem description

Continuation of #635 because it is actually not fixed. I opened this issue to prevent forgetting about it.

What steps will reproduce the bug?

3c8cc75 does not work without setting outAttrs.inputType.

My previous test results are based on this PR #620 (cuz you mentioned BaseInputConnection at the beginning).

If you don't want to merge PR #620 any time soon, may consider to add this to LorieView. Note that Termux:App does the same thing in this line.

    @Override
    public InputConnection onCreateInputConnection(EditorInfo outAttrs) {
        outAttrs.inputType = InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_FLAG_NO_SUGGESTIONS | InputType.TYPE_TEXT_VARIATION_VISIBLE_PASSWORD;
        return super.onCreateInputConnection(outAttrs);
    }

What is the expected behavior?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions