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

Commit 0883dadd authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Add HIDE_REMOVE_CLIENT into InputMethodDebug"

parents fc06c0a6 17780378
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -226,6 +226,8 @@ public final class InputMethodDebug {
                return "HIDE_RECENTS_ANIMATION";
            case SoftInputShowHideReason.HIDE_SAME_WINDOW_FOCUSED_WITHOUT_EDITOR:
                return "HIDE_SAME_WINDOW_FOCUSED_WITHOUT_EDITOR";
            case SoftInputShowHideReason.HIDE_REMOVE_CLIENT:
                return "HIDE_REMOVE_CLIENT";
            default:
                return "Unknown=" + reason;
        }
+8 −0
Original line number Diff line number Diff line
@@ -65,4 +65,12 @@ public class InputMethodDebugTest {
                InputMethodDebug.startInputFlagsToString(
                        StartInputFlags.VIEW_HAS_FOCUS | StartInputFlags.INITIAL_CONNECTION));
    }

    @Test
    public void testSoftInputDisplayReasonToString() {
        // TODO: add more tests
        assertEquals("HIDE_REMOVE_CLIENT",
                InputMethodDebug.softInputDisplayReasonToString(
                        SoftInputShowHideReason.HIDE_REMOVE_CLIENT));
    }
}