1
0
Fork 0

added toast notifications when changing the typing mode and the Main View is invisible

This commit is contained in:
sspanak 2024-04-18 15:27:12 +03:00 committed by Dimo Karaivanov
parent b05455eb5d
commit b190e3bd67

View file

@ -223,7 +223,7 @@ public abstract class HotkeyHandler extends TypingHandler {
setStatusText(mInputMode.toString()); setStatusText(mInputMode.toString());
renderMainView(); renderMainView();
if (!suggestionOps.isEmpty() || settings.isMainLayoutStealth()) { if (!suggestionOps.isEmpty() || settings.isMainLayoutStealth()) {
UI.toastShortSingle(this, mLanguage.getClass().getSimpleName(), mLanguage.getName()); UI.toastShortSingle(this, mInputMode.getClass().getSimpleName(), mInputMode.toString());
} }
if (mInputMode instanceof ModePredictive) { if (mInputMode instanceof ModePredictive) {
@ -248,6 +248,10 @@ public abstract class HotkeyHandler extends TypingHandler {
nextInputMode(); nextInputMode();
renderMainView(); renderMainView();
if (settings.isMainLayoutStealth()) {
UI.toastShortSingle(this, mInputMode.getClass().getSimpleName(), mInputMode.toString());
}
forceShowWindowIfHidden(); forceShowWindowIfHidden();
return true; return true;
} }