2
0
mirror of https://github.com/KDE/kdeconnect-android synced 2025-08-28 20:57:42 +00:00

1535 Commits

Author SHA1 Message Date
Nicolas Fella
da3106f123 Make packet type definition private 2018-09-29 19:33:36 +02:00
Nicolas Fella
83432ed143 Extract duplicate code into method 2018-09-29 19:30:27 +02:00
Nicolas Fella
405792b707 Autoformat code 2018-09-29 19:25:10 +02:00
l10n daemon script
b469c2e79a GIT_SILENT made messages (after extraction) 2018-09-29 03:52:17 +02:00
l10n daemon script
796321b141 GIT_SILENT made messages (after extraction) 2018-09-28 03:41:36 +02:00
l10n daemon script
5e087bf286 GIT_SILENT made messages (after extraction) 2018-09-27 03:41:26 +02:00
l10n daemon script
9b338d940e GIT_SILENT made messages (after extraction) 2018-09-26 03:53:05 +02:00
l10n daemon script
51303a4dc1 GIT_SILENT made messages (after extraction) 2018-09-25 03:47:32 +02:00
Nicolas Fella
a800e0f85a Remove trailing dot and use imperative wording in MPRIS preferences
Make it more consistent with other preferences
2018-09-24 16:51:43 +02:00
l10n daemon script
a52c386598 GIT_SILENT made messages (after extraction) 2018-09-22 03:47:27 +02:00
l10n daemon script
b2dc26da1a GIT_SILENT made messages (after extraction) 2018-09-19 03:46:03 +02:00
l10n daemon script
da74597fc6 GIT_SILENT made messages (after extraction) 2018-09-18 03:44:03 +02:00
Simon Redman
df42f992c8 [Android] New-style Message received handling
Summary:
Mark old-style SMS packet sending as deprecated (but still supported for backwards-compatibility with old Desktop apps)

Implement a ContentObserver on the Messages database, then send an update to the remote for all incoming or outgoing messages

Test Plan:
1. DBus
  - Connect Android to desktop
  - Subscribe to /modules/kdeconnect/devices/<device_id>/org.kdeconnect.device.conversations/conversationUpdated
  - Receive a new message (text yourself?)
  - Verify that something comes back on dbus (This endpoint is updated by D15409. With that patch you should see the new Message object, before you should just get the (meaningless) conversation ID)

2. SMS App
  - Relies on D15409 - See instructions there

Reviewers: #kde_connect, nicolasfella

Reviewed By: #kde_connect, nicolasfella

Subscribers: nicolasfella, kdeconnect

Tags: #kde_connect

Differential Revision: https://phabricator.kde.org/D15360
2018-09-17 09:06:42 -06:00
Simon Redman
0cc3639aa1 [Android] Cleanup SMS plugin and document deprecated SMS-relevant Telephony packet types
Summary:
- Rename all SMS-handling packets to indicate that they belong to the SMS plugin
- Define TELEPHONY_REQUEST_MUTE packet to replace TELEPHONY_REQUEST packet

Please see KDE-side patch here: D15543

Test Plan: See test plan in D15543

Reviewers: #kde_connect, nicolasfella

Reviewed By: #kde_connect, nicolasfella

Subscribers: nicolasfella, kdeconnect

Tags: #kde_connect

Differential Revision: https://phabricator.kde.org/D15544
2018-09-16 16:07:19 -06:00
l10n daemon script
c1a7afe539 GIT_SILENT made messages (after extraction) 2018-09-06 03:43:38 +02:00
l10n daemon script
69ab9fef75 GIT_SILENT made messages (after extraction) 2018-09-03 03:43:56 +02:00
l10n daemon script
c7b6de983b GIT_SILENT made messages (after extraction) 2018-09-02 03:43:38 +02:00
Albert Vaca
6ae878fec2 Remove useless catch-and-throw 2018-08-31 21:42:53 +02:00
l10n daemon script
7daea0ff78 GIT_SILENT made messages (after extraction) 2018-08-27 03:49:23 +02:00
l10n daemon script
e55e73a40a GIT_SILENT made messages (after extraction) 2018-08-26 03:34:56 +02:00
l10n daemon script
f49584c7d0 GIT_SILENT made messages (after extraction) 2018-08-24 03:33:40 +02:00
l10n daemon script
af24858ddf GIT_SILENT made messages (after extraction) 2018-08-22 03:46:33 +02:00
l10n daemon script
818833a729 GIT_SILENT made messages (after extraction) 2018-08-18 03:41:32 +02:00
l10n daemon script
b115a3031b GIT_SILENT made messages (after extraction) 2018-08-16 03:31:36 +02:00
Nicolas Fella
665354c5d5 Split Telephony and SMS plugin on Android
Test Plan:
Get called: Notification appears as before.
Get SMS: Notification shows and it appears in SMS app after reconnect.
Write SMS from app: It shows up on the phone

Reviewers: #kde_connect, albertvaka

Reviewed By: #kde_connect, albertvaka

Subscribers: albertvaka, kdeconnect

Tags: #kde_connect

Differential Revision: https://phabricator.kde.org/D14612
2018-08-15 17:12:45 +02:00
l10n daemon script
f8e742256e GIT_SILENT made messages (after extraction) 2018-08-15 03:40:04 +02:00
Chansol Yang
6db7ffd1db Add acceleration to remote input cursor
Summary:
This patch adds cursor acceleration to KDEConnect's remote input plugin. The cursor movement is now scaled down if the movement is slow, and scaled up if the movement is fast.
The acceleration is implemented on the android side. An additional setting was added to the android app's Remote Control plugin preferences, allowing the user to choose the strength of the acceleration, or to disable the acceleration completely.

Test Plan:
After installing this revision on your android device, go to the remote input page and start using the mousepad. Cursor acceleration should be enabled by default.
Check if the cursor acceleration is intuitive and easy to use. Also, try tweaking the acceleration in the Remote input settings in the Plugin settings menu.

Reviewers: #kde_connect, albertvaka

Reviewed By: #kde_connect, albertvaka

Subscribers: albertvaka, kdeconnect

Tags: #kde_connect

Differential Revision: https://phabricator.kde.org/D14720
2018-08-13 23:50:29 +02:00
l10n daemon script
c6603029ec GIT_SILENT made messages (after extraction) 2018-08-07 03:36:38 +02:00
l10n daemon script
c5fb7b1be4 GIT_SILENT made messages (after extraction) 2018-08-05 03:30:16 +02:00
l10n daemon script
ba7fc67885 GIT_SILENT made messages (after extraction) 2018-08-04 03:38:45 +02:00
l10n daemon script
e7b16949ed GIT_SILENT made messages (after extraction) 2018-08-03 03:29:47 +02:00
Nicolas Fella
877cf67347 Fix volume icon on dark theme 2018-08-01 23:45:32 +02:00
Nicolas Fella
d720684af6 Fix layoout file formatting 2018-08-01 23:42:36 +02:00
Albert Vaca
8d9d15e6dd Added a plugin to present slideshows
Summary:
This adds a plugin with buttons for next and previous slide and fullscreen.
It also allows you to use volume up/down to change slide, even when the screen is off.
It can be extended to show do more presentation-related stuff eventually.
On the desktop side, it uses the already present 'mousepad' (keyboard input) plugin.

Test Plan: Tested manually.

Reviewers: #kde_connect, nicolasfella, apol

Reviewed By: #kde_connect, nicolasfella, apol

Subscribers: apol, nicolasfella, kdeconnect

Tags: #kde_connect

Differential Revision: https://phabricator.kde.org/D14430
2018-08-01 14:27:57 +02:00
l10n daemon script
3acce7dd3f GIT_SILENT made messages (after extraction) 2018-08-01 03:37:04 +02:00
l10n daemon script
10daa33f51 GIT_SILENT made messages (after extraction) 2018-07-31 03:35:01 +02:00
Nicolas Fella
e0fde16525 Added runcommandplugin widget
Summary: A simple widget to execute commands from android desktop

Test Plan:
Add the widget and execute commands from it.
By default, the selected device is the first device in the device list.
The selected device can be changed via the widget title.
If there is no commands, the widget show an empty list
If there is no connected device, show the message located in @string/unreachable_description

Reviewers: albertvaka, nicolasfella, #kde_connect

Reviewed By: albertvaka

Subscribers: kdeconnect, nicolasfella

Tags: #kde_connect

Differential Revision: https://phabricator.kde.org/D12507
2018-07-30 18:15:25 +02:00
Lennart Siefke
5c4c402f23 Lessen indent before "Send files" in main activity
Summary:
The "Send files" button in main acitivity if connected has a larger
indent then the other buttons. This happens on most pixel densities.
Reason was the larger icon the "Send files" button has.

With this patch, the icons all have the same pixel dimensions. It
solves the too large indent.

Screenshot (Because of translation, "Send files" is translated to
"Dateien senden"):

{F6136062}

Reviewers: #kde_connect, apol, nicolasfella

Reviewed By: #kde_connect, nicolasfella

Subscribers: nicolasfella, apol, kdeconnect

Tags: #kde_connect

Differential Revision: https://phabricator.kde.org/D14344
2018-07-30 00:34:07 +02:00
l10n daemon script
e914c1625b GIT_SILENT made messages (after extraction) 2018-07-29 03:29:43 +02:00
Nicolas Fella
f81cf3bf36 Don't draw list dividers
Summary:
Depends on D12289

IMHO it looks sleeker without, especially the dividers on top and bottom and before the section headers are disturbing. Since the content of each list item is just one line of text its also not really needed to separate things

Test Plan:
Before:
{F5810802}

After:
{F5810803}

Reviewers: #kde_connect, #vdg, albertvaka

Reviewed By: #kde_connect, albertvaka

Subscribers: kdeconnect, apol, #kde_connect

Tags: #kde_connect

Differential Revision: https://phabricator.kde.org/D12290
2018-07-27 23:40:51 +02:00
Nicolas Fella
f9c30148b7 System volume plugin Android
Summary:
Add a slider for every sink to the MPRIS Activity. The sink can be muted by clicking on the volume icon.
.
See D7992
BUG: 377319

Reviewers: #kde_connect, mtijink, albertvaka

Reviewed By: #kde_connect, albertvaka

Subscribers: albertvaka, MatMaul, kdeconnect, Murz, mtijink, #kde_connect

Tags: #kde_connect

Maniphest Tasks: T4659

Differential Revision: https://phabricator.kde.org/D7993
2018-07-27 09:20:18 +02:00
Nicolas Fella
2a7535053a Add find remote device plugin
Summary: Counterpart for D11773

Test Plan: Apply D11773, hit Ring, hear sound. Phone to phone works too

Reviewers: #kde_connect, albertvaka

Reviewed By: #kde_connect, albertvaka

Subscribers: albertvaka, kdeconnect, kossebau, #kde_connect

Tags: #kde_connect

Differential Revision: https://phabricator.kde.org/D12344
2018-07-27 08:02:16 +02:00
Nicolas Fella
57fc625af9 Use kdeconnect:// url to trigger commands
Summary:
Make it possible to trigger commands by opening an URI like kdeconnect://runcommand/<deviceid>/<commandid>
Makes it possible to trigger commands from NFC tags.
To ease the setup the url can be added to the clipboard

Test Plan:
Long-press a command entry
Select Copy URL to clipboard
Write into NFC tag or use kdeconnect-handler to trigger url
See command executing

Reviewers: #kde_connect, albertvaka

Reviewed By: #kde_connect, albertvaka

Subscribers: albertvaka, apol, kdeconnect, #kde_connect

Tags: #kde_connect

Differential Revision: https://phabricator.kde.org/D13447
2018-07-27 07:57:02 +02:00
Nicolas Fella
7ab7222f7f Fix missing string 2018-07-27 07:53:10 +02:00
Nicolas Fella
3e05b70803 Support MPRIS stop
Summary:
Fixes T9070

{F5950736}

Reviewers: #kde_connect, albertvaka

Reviewed By: #kde_connect, albertvaka

Subscribers: albertvaka, kdeconnect, #kde_connect

Tags: #kde_connect

Maniphest Tasks: T9070

Differential Revision: https://phabricator.kde.org/D13709
2018-07-27 07:47:45 +02:00
Nicolas Fella
d83091faf8 Give clearer names
Reviewers: #kde_connect, apol

Reviewed By: #kde_connect, apol

Subscribers: kdeconnect, apol, #kde_connect

Tags: #kde_connect

Differential Revision: https://phabricator.kde.org/D12217
2018-07-27 07:46:34 +02:00
Albert Vaca
e1330206ce No need to specify buildtools version anymore
According to https://developer.android.com/studio/releases/build-tools
2018-07-26 19:50:40 +02:00
Albert Vaca
266dd80ffa Bump gradle plugin version 2018-07-26 19:17:36 +02:00
l10n daemon script
3a33550391 GIT_SILENT made messages (after extraction) 2018-07-25 03:33:05 +02:00
Chansol Yang
212069c425 Make remote input sensitivity consistant across device DPIs
Summary:
KDEConnect's Remote Input feature does not take display DPI into account, resulting in inconsistent mouse sensitivities for devices with different DPIs.
This revision aims to fix that by dividing the mouse delta with the relative DPI of the current device. By doing so, the same amount of finger movement should produce the same amount of cursor movement, regardless of the device's DPI.

Addresses the following bug:
BUG: 391029

Reviewers: #kde_connect, nicolasfella

Reviewed By: #kde_connect, nicolasfella

Subscribers: sredman, nicolasfella, kdeconnect

Tags: #kde_connect

Differential Revision: https://phabricator.kde.org/D13925
2018-07-21 13:32:30 +02:00