Bug 423199 - Copy and paste operations not working on Android
Summary: Copy and paste operations not working on Android
Status: RESOLVED FIXED
Alias: None
Product: krita
Classification: Applications
Component: General (show other bugs)
Version: 4.3.0
Platform: Android Android 8.x
: NOR normal
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-06-19 00:33 UTC by spaceotter
Modified: 2020-10-28 09:56 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description spaceotter 2020-06-19 00:33:45 UTC
SUMMARY

Copy and paste operations on 4.2.9 and 4.3 of Krita on Android fail to paste (or possibly fail to copy) (a) the content of a paint layer and (b) layers (Layer > Copy Layer). It's possible other copy and paste operations elsewhere are affected. Might have to do with the way android manages the clipboard.


STEPS TO REPRODUCE
1. Select a paint layer with content
2. Choose a selection tool and select a region
3. Edit > Copy
4. Choose or create a new paint layer
5. Edit > Paste

1. Select a paint layer with content
2. Layer > Copy Layer
3. (optional) Switch to a different krita document
4. Layer > Paste Layer

OBSERVED RESULT

copied region or layer not pasted.

EXPECTED RESULT

the duplication of pixels that were recently copied or cut from a paint layer source

SOFTWARE/OS VERSIONS
Android: 8.0


ADDITIONAL INFORMATION

@sh-zam on krita-artist.org believes this might be an easy fix
Comment 1 Ahab Greybeard 2020-06-19 11:12:05 UTC
I can confirm this for 4.3.0 (git 3b71809) running on a Chromebook with Android 9.0.

The Cut operation does work.
Comment 2 howalthow 2020-08-03 21:47:32 UTC
Issue persists.
4.3.1-alpha (git 8798b4d).
Samsung Galaxy Tab S6 Lite.
Android 10.

Cannot paste
Cannot "copy to new layer"
Comment 3 sh_zam 2020-10-20 14:06:18 UTC
Git commit 0434de1623cf9b783b16c05fbd9c8556ce4720c1 by Sharaf Zaman.
Committed on 20/10/2020 at 14:03.
Pushed by szaman into branch 'krita/4.3'.

Bugfix Android: copy paste operations

Android's default keyboard only suports text, intents
and URIs.

Even though the complex copy/paste operation could be
implemented by operating on the URI and providing a
ContentProvider for other apps. This isn't how it's done
right now.

A  +147  -0    3rdparty/ext_qt/0051-Android-Add-clipboard-buffer-for-mimeTypes-that-aren.patch
M  +1    -0    3rdparty/ext_qt/CMakeLists.txt

https://invent.kde.org/graphics/krita/commit/0434de1623cf9b783b16c05fbd9c8556ce4720c1
Comment 4 sh_zam 2020-10-20 14:07:37 UTC
Git commit 706f2f38febbf8db877588210b22123212172fec by Sharaf Zaman.
Committed on 20/10/2020 at 14:07.
Pushed by szaman into branch 'master'.

Bugfix Android: copy paste operations

Android's default keyboard only suports text, intents
and URIs.

Even though the complex copy/paste operation could be
implemented by operating on the URI and providing a
ContentProvider for other apps. This isn't how it's done
right now.


(cherry picked from commit 0434de1623cf9b783b16c05fbd9c8556ce4720c1)

A  +147  -0    3rdparty/ext_qt/0051-Android-Add-clipboard-buffer-for-mimeTypes-that-aren.patch
M  +1    -0    3rdparty/ext_qt/CMakeLists.txt

https://invent.kde.org/graphics/krita/commit/706f2f38febbf8db877588210b22123212172fec
Comment 5 sh_zam 2020-10-28 09:56:10 UTC
Git commit 86ea11a81881fa66135bef2156020e67bb4bbcd3 by Sharaf Zaman.
Committed on 28/10/2020 at 09:49.
Pushed by szaman into branch 'krita/4.4.0'.

Bugfix Android: copy paste operations

Android's default keyboard only suports text, intents
and URIs.

Even though the complex copy/paste operation could be
implemented by operating on the URI and providing a
ContentProvider for other apps. This isn't how it's done
right now.

(cherry picked from commit 0434de1623cf9b783b16c05fbd9c8556ce4720c1)

A  +147  -0    3rdparty/ext_qt/0051-Android-Add-clipboard-buffer-for-mimeTypes-that-aren.patch
M  +1    -0    3rdparty/ext_qt/CMakeLists.txt

https://invent.kde.org/graphics/krita/commit/86ea11a81881fa66135bef2156020e67bb4bbcd3