1
0
Fork 0

the command keys now execute commands only when pressed, not when held

This commit is contained in:
sspanak 2024-06-26 14:40:59 +03:00 committed by Dimo Karaivanov
parent d66a0c3f21
commit 2bfabd2ec8

View file

@ -12,12 +12,13 @@ public class SoftCommandKey extends SoftNumberKey {
public SoftCommandKey(Context context, AttributeSet attrs) { super(context, attrs);}
public SoftCommandKey(Context context, AttributeSet attrs, int defStyleAttr) { super(context, attrs, defStyleAttr);}
@Override protected void handleHold() {}
@Override
protected String getTitle() {
return getNumber(getId()) + "";
}
private String getTextSubTitle(int resId) {
setTextSize(SettingsStore.SOFT_KEY_TITLE_SIZE);
return getContext().getString(resId);