2
0
mirror of https://github.com/KDE/kdeconnect-android synced 2025-08-30 13:47:41 +00:00

1790 Commits

Author SHA1 Message Date
Erik Duisters
d364401ea9 Use DialogFragment instead of an AlertDialog for runtime permissions 2019-02-02 11:38:13 +00:00
Erik Duisters
fc11951532 Fix keyboard input on Pie (Android 9/API 28)
BUG: 401726
2019-01-29 18:19:07 +01:00
Erik Duisters
da9b4ea19e Do not query for contacts when there are no contacts 2019-01-29 11:13:44 +01:00
Erik Duisters
f4c80dd839 Use an EditTextPreference for changing the device name instead of an AlertDialog 2019-01-29 09:26:42 +00:00
Erik Duisters
6864cec3fa Merge branch 'improve_multi_file_sharing' of invent.kde.org:eduisters/kdeconnect-android into improve_multi_file_sharing 2019-01-27 11:51:46 +01:00
Erik Duisters
e098ebdaf4 Add packet type "kdeconnect.share.request.update" to allow android to update the share notification 2019-01-27 11:50:52 +01:00
Erik Duisters
e1b665bc06 Use BigText style for share notification 2019-01-26 17:50:49 +00:00
Erik Duisters
874e100e91 Add packet type "kdeconnect.share.request.update" to allow android to update the share notification 2019-01-26 16:59:39 +01:00
l10n daemon script
e6673cc10f GIT_SILENT made messages (after extraction) 2019-01-26 02:58:18 +01:00
l10n daemon script
205745aff6 GIT_SILENT made messages (after extraction) 2019-01-25 02:57:36 +01:00
l10n daemon script
4a48662499 GIT_SILENT made messages (after extraction) 2019-01-24 02:57:57 +01:00
l10n daemon script
0e71d63e3c GIT_SILENT made messages (after extraction) 2019-01-22 02:58:35 +01:00
Erik Duisters
4c6b74a2eb Simplify receiving multiple files using only 1 notification
Summary:
Sequentially receiving multiple files was overly complicated sometimes leading to a progress
notification being shown indefinitely. When files are shared using an older kdeconnect-kde version
fallback to receiving each file individually

Test Plan:
Send multiple files from desktop to android and observe that android receives the files
sequentially using only 1 notification

Send multiple files from an kdeconnect-kde installation and observe that android receives the
files in parallel using multiple notifications

Reviewers: #kde_connect, nicolasfella, albertvaka

Reviewed By: #kde_connect, albertvaka

Subscribers: albertvaka, nicolasfella, kdeconnect

Tags: #kde_connect

Differential Revision: https://phabricator.kde.org/D17627
2019-01-21 18:51:51 +01:00
l10n daemon script
5608fe1237 GIT_SILENT made messages (after extraction) 2019-01-21 03:00:30 +01:00
l10n daemon script
7f92219f58 GIT_SILENT made messages (after extraction) 2019-01-20 02:55:01 +01:00
l10n daemon script
618b23bf16 GIT_SILENT made messages (after extraction) 2019-01-19 02:56:40 +01:00
Nicolas Fella
9c62631d63 [Android] Don't force TLS version
Summary:
Use the default configuration from Android

BUG: 400883

Test Plan: Pairing still works

Reviewers: #kde_connect, albertvaka

Reviewed By: #kde_connect, albertvaka

Subscribers: albertvaka, thomasp, kdeconnect

Tags: #kde_connect

Differential Revision: https://phabricator.kde.org/D18219
2019-01-18 09:07:11 +01:00
l10n daemon script
ce3871083a GIT_SILENT made messages (after extraction) 2019-01-18 03:03:25 +01:00
Erik Duisters
8e93e3253f Use androidx version of AlertDialog
Summary:
Use androidx version of AlertDialog to get properly styled AlertDialog buttons
Use PreferenceManager context to style Device Name AlertDialog

|{F6551907}|{F6551908}|
|Before|After|

Test Plan: Apply patch and verify that AlertDialogs have properly styled buttons

Reviewers: #kde_connect, albertvaka

Reviewed By: #kde_connect, albertvaka

Subscribers: albertvaka, kdeconnect

Tags: #kde_connect

Differential Revision: https://phabricator.kde.org/D18298
2019-01-17 17:20:46 +01:00
Piyush Aggarwal
a6ae97afb1 Allow disabling persistent notification in Android 8.0 and up
Summary:
`Show persistent notification` toggle is disabled from Android O and up
This patch aims to enable the toggle with link to Notifications Settings, so that user can itself disable the persistent notification if desired

Test Plan: Apply patch, use on Android O or up device and use `Show persistent notification` toggle. It should take you to Notifications settings page of KDE Connect

Reviewers: #kde_connect, albertvaka

Reviewed By: #kde_connect, albertvaka

Subscribers: albertvaka, eduisters, nicolasfella, kdeconnect, #kde_connect

Tags: #kde_connect

Differential Revision: https://phabricator.kde.org/D18181
2019-01-16 23:48:41 +01:00
Erik Duisters
8466a6f853 Update for Android Studio 3.3
Summary:
Update gradle-plugin to v3.3.0
Update gradle 4.10.1-all
Update Butterknife to v10.0.0

Reviewers: #kde_connect, albertvaka

Reviewed By: #kde_connect, albertvaka

Subscribers: kdeconnect

Tags: #kde_connect

Differential Revision: https://phabricator.kde.org/D18264
2019-01-16 14:52:21 +01:00
l10n daemon script
4fee60bd0d GIT_SILENT made messages (after extraction) 2019-01-14 03:03:14 +01:00
l10n daemon script
bf527eb05d GIT_SILENT made messages (after extraction) 2019-01-11 03:04:46 +01:00
l10n daemon script
5e9ec37b69 GIT_SILENT made messages (after extraction) 2019-01-10 02:58:40 +01:00
l10n daemon script
29f1ad7299 GIT_SILENT made messages (after extraction) 2019-01-09 03:01:56 +01:00
Erik Duisters
72026d94bf Switch to MaterialComponents theme
Summary:
Androidx introduced new Materialcomponents themes, use them instead of
Theme.AppCompat. This also causes AlertDialogs and PreferenceDialogFragments
to be styled correctly

|{F6531506}|{F6531505}|
|Before|After|

(Ok button is disabled if you are wondering)

Test Plan: Apply patch, verify everything still looks as expected

Reviewers: #kde_connect, albertvaka

Reviewed By: #kde_connect, albertvaka

Subscribers: kdeconnect

Tags: #kde_connect

Differential Revision: https://phabricator.kde.org/D18039
2019-01-08 10:07:54 +01:00
l10n daemon script
472545678f GIT_SILENT made messages (after extraction) 2019-01-08 02:56:01 +01:00
l10n daemon script
ed97b76697 GIT_SILENT made messages (after extraction) 2019-01-07 03:08:22 +01:00
Erik Duisters
4173338974 Make tapping on a pair notification work again
Summary:
The Simplify pairing from notification patch D16518 broke the functionality that
tapping on the notification provided

This patch makes tapping on the pairing notification work again as expected

Test Plan:
Before applying this patch initiate a pairing from kde
On android tap on the notification (not the action buttons) and notice that nothing happens

Apply the path and repeat the above test. Now the DeviceFragment should be displayed allowing
the the pairing to be accepted or rejected

Reviewers: #kde_connect, nicolasfella

Reviewed By: #kde_connect, nicolasfella

Subscribers: nicolasfella, kdeconnect

Tags: #kde_connect

Differential Revision: https://phabricator.kde.org/D17886
2019-01-06 13:11:27 +01:00
Erik Duisters
ebdc040ce5 Use ButterKnife for view binding
Summary: Use ButterKnife for view binding

Reviewers: #kde_connect, nicolasfella

Reviewed By: #kde_connect, nicolasfella

Subscribers: nicolasfella, kdeconnect

Tags: #kde_connect

Differential Revision: https://phabricator.kde.org/D17878
2019-01-06 12:46:37 +01:00
Erik Duisters
abba7f1132 Do not continue displaying the previous track's album art image when the new track's albumArtUrl is empty
Summary:
When a new track starts playing and does not have album art the previously displayed
album art image will be displayed until a new track starts playing that does have
album art

Test Plan:
Before applying this patch play a track that has album art followed by a song
that does not have album art. Notice that when the track without album art starts
playing the album art of the previous track is still displayed

Apply patch, repeat previous test and notice that the album art placeholder is displayed
when the track without album art start playing

Reviewers: #kde_connect, nicolasfella

Reviewed By: #kde_connect, nicolasfella

Subscribers: kdeconnect

Tags: #kde_connect

Differential Revision: https://phabricator.kde.org/D17875
2019-01-06 12:44:50 +01:00
Erik Duisters
9fb780f919 Migrate from PreferenceActivity to PreferenceFragment because it has been deprecated since Android 3.0 API11
Summary:
PreferenceActivity has been deprecated since Android 3.0 API 11 in favour of PreferenceFragment

| {F6515113} | {F6515114}|
|Before|
| {F6515111} | {F6515112}|
|After|

Test Plan:
Apply patch and observe that the DeviceSettings and PluginSettings screen behave as expected
and now also follow material design guidelines

Reviewers: #kde_connect, nicolasfella

Reviewed By: #kde_connect, nicolasfella

Subscribers: kdeconnect

Tags: #kde_connect

Differential Revision: https://phabricator.kde.org/D17859
2019-01-06 12:36:42 +01:00
l10n daemon script
045e329b53 GIT_SILENT made messages (after extraction) 2019-01-06 03:00:39 +01:00
l10n daemon script
96a77cf044 GIT_SILENT made messages (after extraction) 2019-01-01 02:55:15 +01:00
l10n daemon script
44c2483aa2 GIT_SILENT made messages (after extraction) 2018-12-30 02:52:17 +01:00
l10n daemon script
b565920409 GIT_SILENT made messages (after extraction) 2018-12-29 03:32:18 +01:00
l10n daemon script
88d453fc72 GIT_SILENT made messages (after extraction) 2018-12-28 02:52:57 +01:00
Erik Duisters
f684fbe8ef Migrate from android support libraries to androidx
Summary: Use the new AndroidX libraries instead of the legacy support libraries

Test Plan: Apply patch and verify everything works as before

Reviewers: #kde_connect, nicolasfella

Reviewed By: #kde_connect, nicolasfella

Subscribers: shubham, kdeconnect

Tags: #kde_connect

Differential Revision: https://phabricator.kde.org/D17818
2018-12-27 16:43:34 +01:00
l10n daemon script
51c71f801d GIT_SILENT made messages (after extraction) 2018-12-27 02:59:51 +01:00
l10n daemon script
9a571129a0 GIT_SILENT made messages (after extraction) 2018-12-26 02:56:49 +01:00
l10n daemon script
34125d675e GIT_SILENT made messages (after extraction) 2018-12-25 02:56:06 +01:00
Nicolas Fella
f294d763eb [Reveivenotification] Put notifications into own channel
Summary:
This allows for more fine-grained control.
CCBUG: 402488

Reviewers: #kde_connect, albertvaka

Reviewed By: #kde_connect, albertvaka

Subscribers: kdeconnect

Tags: #kde_connect

Differential Revision: https://phabricator.kde.org/D17787
2018-12-25 01:34:43 +01:00
Nicolas Fella
54b2a20b3a Remove unneeded field 2018-12-25 00:17:22 +01:00
Nicolas Fella
86fda37b8c Format 2018-12-25 00:10:58 +01:00
Nicolas Fella
82767349cc Rename exception 2018-12-25 00:10:38 +01:00
Nicolas Fella
e76c6d3ea3 Reduce access modifiers 2018-12-25 00:09:52 +01:00
Nicolas Fella
4dec2898f4 [Receivenotification] Support long text
Summary:
Use bigtext style.

BUG: 402489

Test Plan: Send notification with long text. Before a single line was shown. Now the user can view the full content by pulling down the notification

Reviewers: #kde_connect, albertvaka

Reviewed By: #kde_connect, albertvaka

Subscribers: kdeconnect

Tags: #kde_connect

Differential Revision: https://phabricator.kde.org/D17786
2018-12-24 23:03:31 +01:00
Nicolas Fella
501af45941 Don't send our own notifications
Summary:
They were silent anyway and are not really useful
BUG: 402490

Test Plan: I don't see the MPRIS notification in the plasmoid any more

Reviewers: #kde_connect, albertvaka

Reviewed By: #kde_connect, albertvaka

Subscribers: kdeconnect

Tags: #kde_connect

Differential Revision: https://phabricator.kde.org/D17776
2018-12-24 22:35:58 +01:00
Nicolas Fella
cd5bc17176 [ReceiveNotifications] Honor silent property
Summary: Don't show silent notifications. With D17776 we don't send silent any more, but we might again in the future.

Reviewers: #kde_connect, albertvaka

Reviewed By: #kde_connect, albertvaka

Subscribers: kdeconnect

Tags: #kde_connect

Differential Revision: https://phabricator.kde.org/D17777
2018-12-24 22:35:22 +01:00
Nicolas Fella
b4df9f0cb6 Use try-with-resource
Reviewers: #kde_connect, albertvaka

Reviewed By: #kde_connect, albertvaka

Subscribers: kdeconnect

Tags: #kde_connect

Differential Revision: https://phabricator.kde.org/D17778
2018-12-24 22:32:03 +01:00