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:
parent
33eaa936a1
commit
0bba740137
|
@ -8,7 +8,6 @@ class ClipsHelper(val context: Context) {
|
||||||
|
|
||||||
// make sure clips have unique values
|
// make sure clips have unique values
|
||||||
fun insertClip(clip: Clip): Long {
|
fun insertClip(clip: Clip): Long {
|
||||||
clip.value = clip.value.trim()
|
|
||||||
return if (context.clipsDB.getClipWithValue(clip.value) == null) {
|
return if (context.clipsDB.getClipWithValue(clip.value) == null) {
|
||||||
context.clipsDB.insertOrUpdate(clip)
|
context.clipsDB.insertOrUpdate(clip)
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue