mirror of
https://github.com/Helium314/HeliBoard.git
synced 2025-04-27 10:06:21 +00:00
show emoji action moreKey in url fields
remove some logging
This commit is contained in:
parent
53620e7728
commit
07f2c43e38
3 changed files with 1 additions and 4 deletions
|
@ -68,7 +68,6 @@ final class DynamicGridKeyboard extends Keyboard {
|
||||||
mColumnsNum = mBaseWidth / mHorizontalStep;
|
mColumnsNum = mBaseWidth / mHorizontalStep;
|
||||||
if (spacerWidth > 0)
|
if (spacerWidth > 0)
|
||||||
setSpacerColumns(spacerWidth);
|
setSpacerColumns(spacerWidth);
|
||||||
Log.i("test", "spacer width "+spacerWidth+", base width "+mBaseWidth+", spacer relative "+Settings.getInstance().getCurrent().mSplitKeyboardSpacerRelativeWidth);
|
|
||||||
mMaxKeyCount = maxKeyCount;
|
mMaxKeyCount = maxKeyCount;
|
||||||
mIsRecents = categoryId == EmojiCategory.ID_RECENTS;
|
mIsRecents = categoryId == EmojiCategory.ID_RECENTS;
|
||||||
mPrefs = prefs;
|
mPrefs = prefs;
|
||||||
|
@ -90,7 +89,6 @@ final class DynamicGridKeyboard extends Keyboard {
|
||||||
leftmost = center - spacerColumnsWidth / 2;
|
leftmost = center - spacerColumnsWidth / 2;
|
||||||
rightmost = 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++) {
|
for (int i = leftmost; i <= rightmost; i++) {
|
||||||
mEmptyColumnIndices.add(i - 1);
|
mEmptyColumnIndices.add(i - 1);
|
||||||
}
|
}
|
||||||
|
|
|
@ -574,7 +574,7 @@ abstract class KeyboardParser(private val params: KeyboardParams, private val co
|
||||||
else -> null
|
else -> null
|
||||||
}
|
}
|
||||||
// could change definition of numbers to query a range, or have a pre-defined list, but not that crucial
|
// 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 && navigatePrev -> createMoreKeysArray(MORE_KEYS_NAVIGATE_PREVIOUS)
|
||||||
action == EditorInfo.IME_ACTION_NEXT -> null
|
action == EditorInfo.IME_ACTION_NEXT -> null
|
||||||
action == EditorInfo.IME_ACTION_PREVIOUS && navigateNext -> createMoreKeysArray(MORE_KEYS_NAVIGATE_NEXT)
|
action == EditorInfo.IME_ACTION_PREVIOUS && navigateNext -> createMoreKeysArray(MORE_KEYS_NAVIGATE_NEXT)
|
||||||
|
|
|
@ -1024,7 +1024,6 @@ public class DictionaryFacilitatorImpl implements DictionaryFacilitator {
|
||||||
return;
|
return;
|
||||||
ExecutorUtils.getBackgroundExecutor(ExecutorUtils.KEYBOARD).execute(() -> {
|
ExecutorUtils.getBackgroundExecutor(ExecutorUtils.KEYBOARD).execute(() -> {
|
||||||
try {
|
try {
|
||||||
Log.i("test1", "adding to blacklist file" + group.blacklistFileName);
|
|
||||||
FileOutputStream fos = new FileOutputStream(group.blacklistFileName, true);
|
FileOutputStream fos = new FileOutputStream(group.blacklistFileName, true);
|
||||||
fos.write((word + "\n").getBytes(StandardCharsets.UTF_8));
|
fos.write((word + "\n").getBytes(StandardCharsets.UTF_8));
|
||||||
fos.close();
|
fos.close();
|
||||||
|
|
Loading…
Add table
Reference in a new issue