show emoji action moreKey in url fields

remove some logging
This commit is contained in:
Helium314 2023-12-21 23:11:32 +01:00
parent 53620e7728
commit 07f2c43e38
3 changed files with 1 additions and 4 deletions

View file

@ -68,7 +68,6 @@ final class DynamicGridKeyboard extends Keyboard {
mColumnsNum = mBaseWidth / mHorizontalStep;
if (spacerWidth > 0)
setSpacerColumns(spacerWidth);
Log.i("test", "spacer width "+spacerWidth+", base width "+mBaseWidth+", spacer relative "+Settings.getInstance().getCurrent().mSplitKeyboardSpacerRelativeWidth);
mMaxKeyCount = maxKeyCount;
mIsRecents = categoryId == EmojiCategory.ID_RECENTS;
mPrefs = prefs;
@ -90,7 +89,6 @@ final class DynamicGridKeyboard extends Keyboard {
leftmost = center - spacerColumnsWidth / 2;
rightmost = center + spacerColumnsWidth / 2;
}
Log.i("test", "scw "+spacerColumnsWidth+", initial "+((int) (spacerWidth / mHorizontalStep))+", columns "+mColumnsNum);
for (int i = leftmost; i <= rightmost; i++) {
mEmptyColumnIndices.add(i - 1);
}

View file

@ -574,7 +574,7 @@ abstract class KeyboardParser(private val params: KeyboardParams, private val co
else -> null
}
// could change definition of numbers to query a range, or have a pre-defined list, but not that crucial
params.mId.isNumberLayout || params.mId.mMode in listOf(KeyboardId.MODE_URL, KeyboardId.MODE_EMAIL, KeyboardId.MODE_DATE, KeyboardId.MODE_TIME, KeyboardId.MODE_DATETIME) -> when {
params.mId.isNumberLayout || params.mId.mMode in listOf(KeyboardId.MODE_EMAIL, KeyboardId.MODE_DATE, KeyboardId.MODE_TIME, KeyboardId.MODE_DATETIME) -> when {
action == EditorInfo.IME_ACTION_NEXT && navigatePrev -> createMoreKeysArray(MORE_KEYS_NAVIGATE_PREVIOUS)
action == EditorInfo.IME_ACTION_NEXT -> null
action == EditorInfo.IME_ACTION_PREVIOUS && navigateNext -> createMoreKeysArray(MORE_KEYS_NAVIGATE_NEXT)

View file

@ -1024,7 +1024,6 @@ public class DictionaryFacilitatorImpl implements DictionaryFacilitator {
return;
ExecutorUtils.getBackgroundExecutor(ExecutorUtils.KEYBOARD).execute(() -> {
try {
Log.i("test1", "adding to blacklist file" + group.blacklistFileName);
FileOutputStream fos = new FileOutputStream(group.blacklistFileName, true);
fos.write((word + "\n").getBytes(StandardCharsets.UTF_8));
fos.close();