https://bugs.kde.org/show_bug.cgi?id=458278

            Bug ID: 458278
           Summary: Sharing copied text to KDE Connect crashes
                    SendFileActivity
           Product: kdeconnect
           Version: unspecified
          Platform: Android
                OS: Unspecified
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: android-application
          Assignee: albertv...@gmail.com
          Reporter: bolshaya_schi...@mail.gravitide.co
  Target Milestone: ---

Created attachment 151569
  --> https://bugs.kde.org/attachment.cgi?id=151569&action=edit
Android app logcat (showing NPE stacktrace)

SUMMARY

When using the share button in the overlay actions (new in Android 13) to share
copied text to KDE Connect Android, it crashes without sending anything.

STEPS TO REPRODUCE
1. On Android, select some text in any application (e.g. a text editor or
browser)
2. Click on Copy on the selection options
3. On the bottom-left overlay of the screen (new in Android 13, only shown
after copying text), click on the share icon button.
4. Select "KDE Connect Send to Device" as the target
5. Select the desktop device (previously paired) under "Share To..."

OBSERVED RESULT

The activity immediately crashes with a NullPointerException. See logcat
attached.

In addition, a notification is displayed titled "Sent 0 files to <desktop
device name>". There is no toast shown.

EXPECTED RESULT

Ideally, the desktop clipboard should be set to the shared text, i.e. similar
behavior as if "Send Clipboard" were tapped in the persistent notification or
in the app. (Since the user is sharing from a clipboard copy overlay, that is
probably what the user wants.)

If that is not possible, it should behave similar to sharing selected text on
Android (without copying) -- that is, Kate is opened on the desktop with a
draft containing the text being shared. In either case, it should not crash and
should send the text one way or the other.

SOFTWARE/OS VERSIONS
Android: 13
KDE Connect Android app: 1.19.1
Linux: 5.19.3-arch1-1
KDE Plasma Version: 5.25.4
KDE Frameworks Version: 5.97.0
Qt Version: 5.15.5

ADDITIONAL INFORMATION

While I've provided my Linux and KDE versions above, this issue can likely be
reproduced on other OS and KDE Connect desktop versions given the crash is in
the Android app.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to