mirror of
https://github.com/FossifyOrg/Keyboard.git
synced 2026-09-23 18:45:13 -04:00
Don't trim the text when getting it from clipboard. Fix #244
This commit is contained in:
1 parent
0bba740137
commit
e3c813bc36
1 file changed
+1
-1
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user