Skip to content

Commit

Permalink
Merge pull request #381 from Dinkarkumar/adding-imeOptions-to-editText
Browse files Browse the repository at this point in the history
Initialize TypeFaceEditText.kt with imeOptions.
  • Loading branch information
Hamza417 authored Dec 25, 2024
2 parents 3ef26f7 + eb8d49b commit 166c505
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import android.graphics.Color
import android.os.Build
import android.util.AttributeSet
import android.view.animation.DecelerateInterpolator
import android.view.inputmethod.EditorInfo
import android.view.inputmethod.InputMethodManager
import android.widget.TextView
import androidx.annotation.ColorInt
Expand Down Expand Up @@ -54,6 +55,7 @@ open class TypeFaceEditText : AppCompatEditText, ThemeChangedListener {
if (isInEditMode.invert()) {
typeface = TypeFace.getTypeFace(AppearancePreferences.getAppFont(), typedArray.getInt(R.styleable.TypeFaceTextView_appFontStyle, -1), context)
colorMode = typedArray.getInt(R.styleable.TypeFaceTextView_textColorStyle, 1)
imeOptions = EditorInfo.IME_FLAG_NO_EXTRACT_UI
setHighlightColor()
setTextColor(colorMode, false)
setHintTextColor(ThemeManager.theme.textViewTheme.tertiaryTextColor)
Expand Down

0 comments on commit 166c505

Please sign in to comment.