Don't trim the text when inserting into local DB via 'Manage clipboard items'. But value is also trimmed in the EditText extension from Simple-Commons.

This commit is contained in:
Dmitriy Chernysh 2023-10-10 18:28:15 +03:00
parent 33eaa936a1
commit 0bba740137
1 changed files with 0 additions and 1 deletions

View File

@ -8,7 +8,6 @@ class ClipsHelper(val context: Context) {
// make sure clips have unique values
fun insertClip(clip: Clip): Long {
clip.value = clip.value.trim()
return if (context.clipsDB.getClipWithValue(clip.value) == null) {
context.clipsDB.insertOrUpdate(clip)
} else {