2
0
mirror of https://github.com/KDE/kdeconnect-android synced 2025-08-29 13:17:43 +00:00

2314 Commits

Author SHA1 Message Date
Md Shavez
a3b768fdf8 Added colors: secondary and onSecondary according to guidelines of material design 2020-03-17 12:30:25 +05:30
l10n daemon script
27e2a3a31d GIT_SILENT made messages (after extraction) 2020-03-17 02:46:08 +01:00
l10n daemon script
92dcec7883 GIT_SILENT made messages (after extraction) 2020-03-16 02:51:23 +01:00
l10n daemon script
4a678330a5 GIT_SILENT made messages (after extraction) 2020-03-15 02:49:01 +01:00
l10n daemon script
55259ed154 GIT_SILENT made messages (after extraction) 2020-03-14 02:47:21 +01:00
Joscha Henningsen
2c23b92bdd Fix bug concerning incorrect process status when sharing large files (>2.15GB) 2020-03-12 23:46:31 +00:00
Anjani Kumar
b81d3a82e5 Make Clipboard plugin work in Android X
## Summary

Fixes #5

BUG: 417419](https://bugs.kde.org/show_bug.cgi?id=417419)

This patch introduces a workaround to access the restricted clipboard in Android X.
Clipboard synchronisation in KDE Connect was one of the killer features before Android X. An action button is added in the persistent foreground notification **Send Clipboard** which adds the ability to send the clipboard using a small workaround. Clipboard Synchronisation works as usual in lower Android Versions.

This is a very convenient workaround for sending clipboard quickly as it does not requires to open the app. Floating Activity is quite handy for quick actions.

## Details of the workaround

### ClipboardFloatingActivity

* This activity is only executed in Android X.
* This is transparent, accesses the clipboard when in focus.
* Sends a `NetworkPacket` containing *text* and *timestamp*.
* When the packet has been sent, it pops up a toast with a success message.
* Automatically closes after the showing the Toast.

### Reverted changes for Android X.

* Changes done in commits 54be4a1a997e14516353f5104ef1619f98ba99ec and 9f3b75b7483fe79527d635ad10a2bb7cf6496d8c have been reverted.
* These changes are not required anymore as the workaround for clipboard sync works.

The action button in the notification for **Send Clipboard** is not added in the lower versions of Android. **It is only added in Android X**.

**Two way sync is working in Android X with this patch. Sync works normally in lower Android versions.**

## Test Plan

### Before:

Clipboard from PC to Phones were synchronised but Clipboard of phones didn't get synchronised with the PC.

### After:

The action button is up in Android X while using other apps.

![Screenshot_20200227-150435_Chrome](/uploads/201960e1577321c8a77c9945bd2b5e76/Screenshot_20200227-150435_Chrome.png)

After clicking the button, a cute Toast appears with the message *Clipboard sent*

![Screenshot_20200228-233701_Chrome](/uploads/8da58b1006b95ce82c7cec2c91f32878/Screenshot_20200228-233701_Chrome.png)

I think this is one of the best workarounds available to make this awesome plugin work.
2020-03-12 03:56:37 +00:00
l10n daemon script
61c1629ff0 GIT_SILENT made messages (after extraction) 2020-03-11 02:52:45 +01:00
Simon Redman
36f592a665 [SMS App] Add interface for querying a range of messages
## Summary
This patch adds an interface to return only a specified window of messages.

The current implementation of the conversation interface loads all messages every time the conversation is requested. This is might be painfully slow to load in case the conversation is large or if there are a lot of MMS/RCS messages in the conversation (since those are wildly slower to load than SMS)

Used by https://invent.kde.org/kde/kdeconnect-kde/merge_requests/203 to enable Desktop functionality

## Test Plan

 - With new Android app and old Desktop app:
   - The Android app will notice the missing fields and query for all messages as before.
 - With old Android app and new Desktop app:
   - The desktop will send fields for the new interface which will not be read and all messages will be returned.
 - With new Android app and new Desktop app:
   - The new interface is used and returns only a certain number of messages at a time.

## Known Issues
There is an un-covered corner case if lots of MMS messages are received in the same second (or SMS messages in the same millisecond): Since the interfaces uses timestamps as a filter, it might happen that not all messages sharing the same timestamp are returned. The fact that there are still more messages sharing the timestamp is invisible to the caller. This could be a real-world problem if, for example, a user gets off a plane and their phone downloads a bunch of MMS all at once.
2020-03-11 00:34:31 +00:00
l10n daemon script
2b934af3fa GIT_SILENT made messages (after extraction) 2020-03-04 02:48:50 +01:00
l10n daemon script
34cad4c117 GIT_SILENT made messages (after extraction) 2020-02-26 02:50:14 +01:00
Anjani Kumar
d7f3931eeb Removed extra string resource 2020-02-25 02:46:32 +05:30
Anjani Kumar
0a225d3217 Added a check for RunCommands being empty before adding action button. 2020-02-24 22:39:58 +05:30
Anjani Kumar
e5e0b6dad6 Added two new string resources in strings.xml for two action buttons 2020-02-24 22:39:58 +05:30
Anjani Kumar
e3f0572b9d Adding two action buttons (Send Files/Run Commands) in notification only when there is a single device connected 2020-02-24 22:39:58 +05:30
Albert Vaca
06bce217ac Merge remote-tracking branch 'albertvaka/photo-npe-fix' 2020-02-24 11:41:40 +01:00
l10n daemon script
e1f418e597 GIT_SILENT made messages (after extraction) 2020-02-21 02:41:41 +01:00
Albert Vaca
fb97bb5dbb Merge branch 'work/androidx-bump' 2020-02-18 21:13:06 +01:00
Simon Redman
0d69c0b96c Fix duplicated addresses 2020-02-17 16:34:51 -08:00
l10n daemon script
3dc171632c GIT_SILENT made messages (after extraction) 2020-02-17 02:46:50 +01:00
Dmitriy Bogdanov
4c5114388a
Set correct actions in MPRIS notification 2020-02-14 16:14:58 +04:00
Albert Vaca Cintora
546613f4b8 Bump Androidx version
We went over the DEX methods limit, so I enabled Proguard on debug :(
2020-02-09 21:51:56 +01:00
l10n daemon script
4fe2b1b601 GIT_SILENT made messages (after extraction) 2020-02-08 02:48:36 +01:00
l10n daemon script
0b85d80634 GIT_SILENT made messages (after extraction) 2020-02-05 02:48:04 +01:00
l10n daemon script
0ca20767c7 GIT_SILENT made messages (after extraction) 2020-01-28 02:42:08 +01:00
l10n daemon script
519cfd8253 GIT_SILENT made messages (after extraction) 2020-01-25 02:46:28 +01:00
l10n daemon script
c09b310c6b GIT_SILENT made messages (after extraction) 2020-01-21 02:49:00 +01:00
l10n daemon script
c88a9df295 GIT_SILENT made messages (after extraction) 2020-01-20 02:46:40 +01:00
Soul Trace
564251e3cb MprisActivity: Fix "Open URL" button visibility check
It should be checked against empty string, not against null.
2020-01-19 11:39:23 +03:00
Soul Trace
b99082ef00 Let user open in the PC browser media URL to Android device [1/2]
Seek position is preserved for following domains:
youtube.com
youtu.be
pornhub.com
vimeo.com
dailymotion.com
twitch.tv

ic_arrow_black.xml was converted from Kubuntu 19.10 AMD64
breeze-icon-theme package:
/usr/share/icons/breeze-dark/actions/32/arrow.svg
2020-01-18 17:27:49 +00:00
l10n daemon script
6d8faa7c48 GIT_SILENT made messages (after extraction) 2020-01-18 02:47:42 +01:00
l10n daemon script
f2ef2e9047 GIT_SILENT made messages (after extraction) 2020-01-17 02:48:41 +01:00
l10n daemon script
45a5385ee5 GIT_SILENT made messages (after extraction) 2020-01-16 02:45:12 +01:00
Albert Vaca
386c3cec21 Listen to MY_PACKAGE_REPLACED to restart the service on app upgrades.
The old PACKAGE_REPLACED event doesn't work since Oreo [1].

[1] https://developer.android.com/about/versions/oreo/background.html#broadcasts

BUG: 416245
2020-01-15 12:46:22 +01:00
Albert Vaca Cintora
54be4a1a99 Don't load clipboard plugin in Android 10 2020-01-14 23:02:38 +01:00
Albert Vaca Cintora
9f3b75b748 Notify Android 10 users that clipboard won't work 2020-01-14 23:02:38 +01:00
Albert Vaca Cintora
b1e3113343 Allow negative button to not be present 2020-01-14 23:02:38 +01:00
Albert Vaca Cintora
2ee3c543f5 Remove requestCode from get[Optional]PermissionExplanationDialog 2020-01-14 23:02:38 +01:00
l10n daemon script
6a43975951 GIT_SILENT made messages (after extraction) 2020-01-14 02:45:56 +01:00
Albert Vaca
8e28580e93 Release 1.13.7 v1.13.7 2020-01-13 17:35:25 +01:00
Albert Vaca
10f94781c3 Only set volume to previousVolume if it has a previous value
onDestroy() would call stopPlaying(), but previousVolume would be 0 (the
default value) if startPlaying() had been never called.
2020-01-13 17:33:15 +01:00
l10n daemon script
2f4dcd1448 GIT_SILENT made messages (after extraction) 2020-01-12 02:48:22 +01:00
Albert Vaca
acbea545d0 Linter fixes 2020-01-10 12:50:23 +01:00
Albert Vaca
aa69b67cfe Fix NPE 2020-01-10 12:50:14 +01:00
l10n daemon script
9c19fd9b41 GIT_SILENT made messages (after extraction) 2020-01-09 02:41:02 +01:00
Nicolas Fella
bb1f79b5e6 Open .itinerary files always in KDE Itinerary 2020-01-07 19:09:56 +00:00
l10n daemon script
f7c78eeb8c GIT_SILENT made messages (after extraction) 2020-01-07 02:51:48 +01:00
Albert Vaca Cintora
510028d738 Do not make all ONLY_ALERT_ONCE notifications silent
Propagate the flag to the desktop so we can use it there to do what it's
supposed to do.

Fixes Whatsapp notifications not showing up in the desktop.
2020-01-05 22:48:36 +01:00
Albert Vaca Cintora
b3d91e083a Merge branch 'albertvaka/trusted-networks'
# Conflicts:
#	AndroidManifest.xml
2020-01-05 22:39:05 +01:00
Albert Vaca Cintora
e37aa08dac Release 1.13.6 v1.13.6 2020-01-05 22:34:07 +01:00