From 920514554d48f41dd76042ce6c18ad101b419be6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ensar=20Saraj=C4=8Di=C4=87?= Date: Fri, 7 Jul 2023 18:15:39 +0200 Subject: [PATCH] Remove minimum width from clipboard item --- .../simplemobiletools/keyboard/services/SimpleKeyboardIME.kt | 3 +-- app/src/main/res/layout/keyboard_view_keyboard.xml | 1 - app/src/main/res/values/dimens.xml | 1 - 3 files changed, 1 insertion(+), 4 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/keyboard/services/SimpleKeyboardIME.kt b/app/src/main/kotlin/com/simplemobiletools/keyboard/services/SimpleKeyboardIME.kt index 5a62509..d912b63 100644 --- a/app/src/main/kotlin/com/simplemobiletools/keyboard/services/SimpleKeyboardIME.kt +++ b/app/src/main/kotlin/com/simplemobiletools/keyboard/services/SimpleKeyboardIME.kt @@ -103,13 +103,12 @@ class SimpleKeyboardIME : InputMethodService(), OnKeyboardActionListener, Shared @RequiresApi(Build.VERSION_CODES.R) override fun onCreateInlineSuggestionsRequest(uiExtras: Bundle): InlineSuggestionsRequest { - val minWidth = resources.getDimensionPixelSize(R.dimen.suggestion_min_width) val maxWidth = resources.getDimensionPixelSize(R.dimen.suggestion_max_width) return InlineSuggestionsRequest.Builder( listOf( InlinePresentationSpec.Builder( - Size(minWidth, ViewGroup.LayoutParams.WRAP_CONTENT), + Size(ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT), Size(maxWidth, ViewGroup.LayoutParams.WRAP_CONTENT) ).setStyle(buildSuggestionTextStyle()).build() ) diff --git a/app/src/main/res/layout/keyboard_view_keyboard.xml b/app/src/main/res/layout/keyboard_view_keyboard.xml index 289fc50..83e2f8d 100644 --- a/app/src/main/res/layout/keyboard_view_keyboard.xml +++ b/app/src/main/res/layout/keyboard_view_keyboard.xml @@ -55,7 +55,6 @@ android:ellipsize="end" android:gravity="center" android:lines="1" - android:minWidth="@dimen/suggestion_min_width" android:paddingStart="@dimen/activity_margin" android:paddingTop="@dimen/small_margin" android:paddingEnd="@dimen/activity_margin" diff --git a/app/src/main/res/values/dimens.xml b/app/src/main/res/values/dimens.xml index 6b66a97..e49337c 100644 --- a/app/src/main/res/values/dimens.xml +++ b/app/src/main/res/values/dimens.xml @@ -12,7 +12,6 @@ 4dp 42dp 200dp - 100dp 22sp 26sp