Don't trim the text when getting it from clipboard. Fix #244
This commit is contained in:
parent
0bba740137
commit
e3c813bc36
1 changed files with 1 additions and 1 deletions
|
@ -47,7 +47,7 @@ val Context.clipsDB: ClipsDao
|
||||||
|
|
||||||
fun Context.getCurrentClip(): String? {
|
fun Context.getCurrentClip(): String? {
|
||||||
val clipboardManager = (getSystemService(Context.CLIPBOARD_SERVICE) as ClipboardManager)
|
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 {
|
fun Context.getStrokeColor(): Int {
|
||||||
|
|
Loading…
Reference in a new issue