1
0
Fork 0

fixed status and suggestions disappearing when changing the orientation; removed the ModePassthrough icons for simpler status display

This commit is contained in:
sspanak 2024-04-04 10:40:23 +03:00 committed by Dimo Karaivanov
parent 152c1f2cea
commit 74799f890f
7 changed files with 7 additions and 24 deletions

View file

@ -121,8 +121,8 @@ public class TraditionalT9 extends HotkeyHandler {
protected void onStop() {
onFinishTyping();
suggestionOps.clear();
setStatusIcon(0);
setStatusText("--");
setStatusIcon(mInputMode.getIcon());
setStatusText(mInputMode.toString());
if (isInputViewShown()) {
updateInputViewShown();
@ -144,6 +144,9 @@ public class TraditionalT9 extends HotkeyHandler {
mainView.forceCreateView();
initTray();
setDarkTheme();
setStatusText(mInputMode.toString());
suggestionOps.set(mInputMode.getSuggestions());
return mainView.getView();
}

View file

@ -12,9 +12,9 @@ public class ModePassthrough extends InputMode {
}
@Override public int getId() { return MODE_PASSTHROUGH; }
@Override public int getIcon() { return R.drawable.ic_mode_passthrough; }
@Override public int getIcon() { return 0; }
@Override public int getSequenceLength() { return 0; }
@Override @NonNull public String toString() { return "Passthrough"; }
@Override @NonNull public String toString() { return "--"; }
@Override public boolean isNumeric() { return true; }
@Override public boolean isPassthrough() { return true; }

View file

@ -1,20 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="256"
android:viewportHeight="167.625"
android:tint="#FFFFFF">
<group android:scaleX="0.96"
android:scaleY="0.62859374"
android:translateY="27.775986">
<group android:translateY="133.66406">
<path android:pathData="M14.140625,-104.984375L33.265625,-104.984375L79.8125,-17.15625L79.8125,-104.984375L93.59375,-104.984375L93.59375,-0L74.46875,-0L27.921875,-87.828125L27.921875,-0L14.140625,-0L14.140625,-104.984375Z"
android:fillColor="#000000"/>
<path android:pathData="M144.5625,-104.984375L156.51562,-104.984375L119.953125,13.359375L108,13.359375L144.5625,-104.984375Z"
android:fillColor="#000000"/>
<path android:pathData="M206.21875,-90.984375L186.95312,-38.75L225.5625,-38.75L206.21875,-90.984375ZM198.20312,-104.984375L214.3125,-104.984375L254.3125,0L239.54688,0L229.98438,-26.9375L182.67188,-26.9375L173.10938,0L158.125,0L198.20312,-104.984375Z"
android:fillColor="#000000"/>
</group>
</group>
</vector>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 521 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 374 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 728 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB