Don't trim the text when getting it from clipboard. Fix #244

This commit is contained in:
Dmitriy Chernysh 2023-10-10 18:51:04 +03:00
parent 0bba740137
commit e3c813bc36
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ val Context.clipsDB: ClipsDao
fun Context.getCurrentClip(): String? {
val clipboardManager = (getSystemService(Context.CLIPBOARD_SERVICE) as ClipboardManager)
return clipboardManager.primaryClip?.getItemAt(0)?.text?.trim()?.toString()
return clipboardManager.primaryClip?.getItemAt(0)?.text?.toString()
}
fun Context.getStrokeColor(): Int {