Commit Graph

4156 Commits

Author SHA1 Message Date
Albert Vaca Cintora
863d47d250 Update gradle wrapper 2025-10-30 23:46:17 +01:00
l10n daemon script
1058ae7472 GIT_SILENT made messages (after extraction) 2025-10-27 02:00:39 +00:00
Albert Vaca Cintora
f9d5665057 Remove unused stuff 2025-10-27 01:18:38 +01:00
Albert Vaca Cintora
ebc9006e04 Cleanup 2025-10-27 01:18:23 +01:00
Albert Vaca Cintora
5f876df5db Fix compiler warnings 2025-10-27 00:58:47 +01:00
Albert Vaca Cintora
aa55b64da6 Make some args non-nullable 2025-10-27 00:52:38 +01:00
Albert Vaca Cintora
97dd994684 SMSPlugin: Better null handling 2025-10-27 00:52:38 +01:00
Albert Vaca Cintora
e5e0929b53 Bump deps 2025-10-27 00:32:36 +01:00
Albert Vaca Cintora
015c0b77b6 Remove unused field 2025-10-27 00:14:10 +01:00
Albert Vaca Cintora
a4c260528c Do not add getter functions for constants 2025-10-27 00:13:52 +01:00
Albert Vaca Cintora
0e704c1ada Import cleanup 2025-10-26 23:54:26 +01:00
Albert Vaca Cintora
6cfc5f2d0c Replace StringUtils with Kotlin built-ins 2025-10-26 23:49:13 +01:00
Albert Vaca Cintora
1f79baf703 SMSHelper: Replace NumberUtils with Kotlin built-ins 2025-10-26 23:49:13 +01:00
Albert Vaca Cintora
818077db20 TelephonyPlugin cleanup 2025-10-26 23:48:58 +01:00
TPJ Schikhof
f270f2e446 Migrate TelephonyPlugin to Kotlin 2025-10-26 23:38:57 +01:00
Albert Vaca Cintora
755f18ded8 Try to spam less with "continue watching" notifications
BUG: 488666
2025-10-26 15:50:52 +01:00
Albert Vaca Cintora
4283eb9cd7 Remove compat helper for Android 4.1 2025-10-26 15:50:14 +01:00
Albert Vaca Cintora
425dada7ce Ignore mpris URLs that we know for sure they don't point to media
BUG: 488666
2025-10-26 15:50:11 +01:00
Krut Patel
c1b76ebeb3 mpris: Ignore stop events from media session
## Issue
Fixes spurious close of the media on pause.
1. Certain phones have a timeout that stops the `MediaSession` after a few minutes of staying paused. This may be fine on a mobile phone, but may not be desired on a PC.
2. Additionally, my phone _sometimes_ sends the stop event immediately on pausing the media and makes KDE Connect kill the playback even on my PC.

## Fix
We do not forward the stop events to the connected device. If user wants to really stop playback, they must use the Stop button inside the media controller view inside the app.

Note that this means we will also end up ignoring legitimate (user-initiated) stop events, such as from Bluetooth headphones.

## Discussion
Ideally, we'd be able to differentiate between user-initiated and system-initiated events, thus letting us selectively forward user-initiated events. But the current `MediaSessionCompat.Callback` doesn't have that information.
2025-10-24 16:59:48 -07:00
l10n daemon script
edd4c0eedc GIT_SILENT made messages (after extraction) 2025-10-24 01:59:34 +00:00
TPJ Schikhof
d091eba660 Migrate presenter plugin to Kotlin 2025-10-23 20:35:00 +02:00
Andy Holmes
7eb9753336 Drop "onlyOnce" field from forwarded notifications
This is only set by the Android app and never consumed or used by
any client. It is also arguably made redundant by the `silent`
field, which is clearer in purpose.
2025-10-23 18:20:07 +02:00
Albert Vaca Cintora
d2ecb40a10 Fix tests 2025-10-23 17:23:54 +02:00
Albert Vaca Cintora
4aaae78cdb Fix build broken after rebasing 2025-10-23 15:24:13 +02:00
Albert Vaca Cintora
ef78e59a83 Target JDK 11 2025-10-23 15:07:22 +02:00
Albert Vaca Cintora
4f6fb87a95 Uncomment and fix deleting devices, since the leaks have been fixed 2025-10-23 15:07:22 +02:00
Albert Vaca Cintora
d5f8df6577 Set list adapters to null in fragments when destroying the view
Since the fragment outlives the view, and often we have callbacks in the
adapter which hold references to whole Devices or other stuff, preventing
them from beeing freed.
2025-10-23 15:06:56 +02:00
Albert Vaca Cintora
fb343f711b Use viewLifecycleOwner as the lifecycle of the observer
The fragment outlives the view, so this stops observing earlier.
2025-10-23 15:06:56 +02:00
Albert Vaca Cintora
2c2ac41644 Null missing binding 2025-10-23 15:06:56 +02:00
Albert Vaca Cintora
bf8f63c7e9 Fix "duplicate device names" warning showing for disconnected devices 2025-10-23 15:06:56 +02:00
Albert Vaca Cintora
55eabf452f Unregister receivers and observers when no longer needed 2025-10-21 00:45:25 +02:00
Albert Vaca Cintora
9f859feca3 Recycle bitmaps after using them 2025-10-21 00:45:25 +02:00
Albert Vaca Cintora
0c7820cebf Fix leaking MediaMetadataRetriever 2025-10-21 00:45:25 +02:00
Albert Vaca Cintora
47f82403d6 Do not store a reference to context for each Address 2025-10-21 00:45:25 +02:00
TPJ Schikhof
949938401e Migrate NotificationHelper to Kotlin 2025-10-20 21:32:23 +00:00
TPJ Schikhof
5ebacad139 Rename .java to .kt 2025-10-20 21:32:23 +00:00
l10n daemon script
6c5f32654f GIT_SILENT made messages (after extraction) 2025-10-20 02:02:40 +00:00
Albert Vaca Cintora
df72918b45 Fix keylistener losing the focus
When pressing down on Android, the focus would move from the keylistener
to the buttons below, which made us not be able to listen to other keys.
2025-10-19 11:46:02 +02:00
Albert Vaca Cintora
78741da05a Log a warning when duplicate devices are found 2025-10-18 20:14:30 +02:00
l10n daemon script
27172a8aef GIT_SILENT Sync po/docbooks with svn 2025-10-17 03:03:30 +00:00
l10n daemon script
5cd400e5b1 GIT_SILENT made messages (after extraction) 2025-10-17 02:32:52 +00:00
TPJ Schikhof
15bfa52304 Remove "X-KDECONNECT-TIMESTAMP" https://invent.kde.org/network/kdeconnect-android/-/merge_requests/509#note_1304497 2025-10-16 20:41:41 +02:00
TPJ Schikhof
a3a1e797d4 Fixed issue caused by conflict resolution and deduplicated stored UID's 2025-10-16 20:37:19 +02:00
TPJ Schikhof
2d8b43d75d Migrate ContactsPlugin to Kotlin (conflict resolution) 2025-10-16 20:29:00 +02:00
TPJ Schikhof
3fdc2b4951 Rename .java to .kt 2025-10-16 20:28:07 +02:00
Albert Vaca Cintora
3d7de57336 Remove packet type deprecated in 2018 2025-10-16 12:58:07 +02:00
l10n daemon script
ea06b4b40f GIT_SILENT made messages (after extraction) 2025-10-16 02:01:53 +00:00
Albert Vaca Cintora
aee90509e6 Fix FileUriExposedException when mpris sent "file://" urls 2025-10-15 12:05:18 +02:00
l10n daemon script
430f1b7fdc GIT_SILENT made messages (after extraction) 2025-10-15 01:59:07 +00:00
Albert Vaca Cintora
368684ad4e Milder asserts 2025-10-14 15:59:54 +02:00