mirror of
https://github.com/Helium314/HeliBoard.git
synced 2025-05-14 05:52:47 +00:00
parent
7652af888d
commit
a1c70a1181
2 changed files with 3 additions and 2 deletions
|
@ -76,7 +76,7 @@ class ClipboardAdapter(
|
|||
|
||||
fun setContent(historyEntry: ClipboardHistoryEntry?) {
|
||||
itemView.tag = historyEntry?.timeStamp
|
||||
contentView.text = historyEntry?.content
|
||||
contentView.text = historyEntry?.content?.take(1000) // truncate displayed text for performance reasons
|
||||
pinnedIconView.visibility = if (historyEntry?.isPinned == true) View.VISIBLE else View.GONE
|
||||
}
|
||||
|
||||
|
|
|
@ -198,7 +198,8 @@ class ClipboardHistoryManager(
|
|||
// create the view
|
||||
val binding = ClipboardSuggestionBinding.inflate(LayoutInflater.from(latinIME), parent, false)
|
||||
val textView = binding.clipboardSuggestionText
|
||||
textView.text = if (isClipSensitive(inputType)) "*".repeat(content.length) else content
|
||||
textView.text = (if (isClipSensitive(inputType)) "*".repeat(content.length) else content)
|
||||
.take(200) // truncate displayed text for performance reasons
|
||||
val clipIcon = latinIME.mKeyboardSwitcher.keyboard.mIconsSet.getIconDrawable(ToolbarKey.PASTE.name.lowercase())
|
||||
textView.setCompoundDrawablesRelativeWithIntrinsicBounds(clipIcon, null, null, null)
|
||||
textView.setOnClickListener {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue