2
0
mirror of https://github.com/KDE/kdeconnect-android synced 2025-08-31 14:15:14 +00:00
Commit Graph

2900 Commits

Author SHA1 Message Date
Albert Vaca Cintora
ea66605ef0 Fix crash on Android 7 2022-12-28 17:31:42 +01:00
Albert Vaca Cintora
c903c5d3fd Release 1.20.1
Untagged because it's for the play store only.
2022-12-28 00:26:58 +01:00
Albert Vaca Cintora
a663f4d106 Comment out MouseReceiverPlugin
The Play Store asks us a video showing why we need the accessibility
service, and I can't make it work so I can't record the video.
Removing this plugin removes the need for any accessibility permissions.
v1.20.1
2022-12-28 00:14:49 +01:00
Albert Vaca Cintora
1a79c3e77a Release 1.20 v1.20 2022-12-27 23:53:45 +01:00
Albert Vaca Cintora
6fbd923c60 Bump dependencies and targetSdkVersion
Motivation: We can't publish to the Play Store with a targetSdkVersion < 31

The new targetSdk required two changes:

* Specifying when activities, services and receivers should be exported or
  not to other apps. For the ones I wasn't sure of what we want, I made
  them exported to not break something.
* Specifying when a PendingIntent should be mutable or immutable. I made
  them all mutable for now.
2022-12-27 23:53:13 +01:00
l10n daemon script
f7b25bfaf7 GIT_SILENT Sync po/docbooks with svn 2022-12-26 02:16:12 +00:00
l10n daemon script
e61af6fa37 GIT_SILENT Sync po/docbooks with svn 2022-12-25 02:42:13 +00:00
Felix Fischer
9df91577d3 Add monochrome drawable (i.e. Android 13 themed icon)
## Summary

Since a lot of devices now have Android 13, some users might want support for the new themed app icons.
This adds support for these, by adding a monochrome drawable (just the default icon with only the phone border and K) in `res/drawable-v24/ic_launcher_monochrome.xml` and then referencing this in `res/minimap-anydpi-v26/ic_laucher(_round).xml`.

## Test Plan

This can be tested by simply compiling and installing the app as usual on any device running Android 13.
After installing the app, the option for an adaptive colour theme will need to be enabled:
- OneUI5: Long-press home screen > Wallpaper and Style > Colour palette > enable colour palette and check "Apply palette to app icons"
- Pixel: Long-press home screen > Wallpaper & style > check "Themed icons"

The app icon should now follow the system theme (on some devices only on home screen, on others both home screen and app drawer).

![Screenshot_20221204_231210](/uploads/75ec96d9a3b17486622e32148cfd775c/Screenshot_20221204_231210.png)
2022-12-19 22:12:03 +00:00
l10n daemon script
39ff1da82d GIT_SILENT Sync po/docbooks with svn 2022-12-15 02:14:58 +00:00
l10n daemon script
081bb4ebc8 GIT_SILENT Sync po/docbooks with svn 2022-12-14 02:40:53 +00:00
l10n daemon script
7f47dcf860 GIT_SILENT made messages (after extraction) 2022-12-11 00:46:45 +00:00
l10n daemon script
e5c976eeee GIT_SILENT Sync po/docbooks with svn 2022-12-08 02:10:14 +00:00
l10n daemon script
88b396b6f0 GIT_SILENT made messages (after extraction) 2022-12-04 00:45:55 +00:00
l10n daemon script
04067984ed GIT_SILENT Sync po/docbooks with svn 2022-12-03 02:07:49 +00:00
l10n daemon script
99d2f1b0df GIT_SILENT Sync po/docbooks with svn 2022-12-02 02:52:03 +00:00
l10n daemon script
f71d5b5e8c GIT_SILENT Sync po/docbooks with svn 2022-11-21 02:01:50 +00:00
l10n daemon script
5b346d9c7a GIT_SILENT Sync po/docbooks with svn 2022-11-20 02:31:18 +00:00
l10n daemon script
dd1aa4731d GIT_SILENT made messages (after extraction) 2022-11-19 00:45:11 +00:00
l10n daemon script
a941f2bf3a GIT_SILENT made messages (after extraction) 2022-11-17 00:45:23 +00:00
l10n daemon script
9ed7571e1d GIT_SILENT made messages (after extraction) 2022-11-16 00:46:27 +00:00
l10n daemon script
d9c2da2fdb GIT_SILENT made messages (after extraction) 2022-11-12 00:46:58 +00:00
l10n daemon script
4398d791a3 GIT_SILENT made messages (after extraction) 2022-11-11 00:45:24 +00:00
Simon Redman
c477cbe33c Fix lint errors in SMSHelper.java
## Summary

Clean up a bunch of lint errors in SMSHelper.java. Some of these are null issues which in theory might prevent a crash.

## Test Plan

No functional changes are expected. Fetching SMS still works for me.
2022-11-08 00:47:31 +00:00
Philip Cohn-Cort
a63d549739 Remove some unused imports
## Summary

Very basic maintenance MR to remove unused imports from code files.
2022-11-07 23:15:06 +00:00
l10n daemon script
d57072186a GIT_SILENT Sync po/docbooks with svn 2022-11-07 02:32:01 +00:00
l10n daemon script
10a7b50b0d GIT_SILENT made messages (after extraction) 2022-11-06 00:46:23 +00:00
l10n daemon script
d594f45914 GIT_SILENT made messages (after extraction) 2022-11-04 00:45:33 +00:00
l10n daemon script
45f557b0fe GIT_SILENT made messages (after extraction) 2022-11-03 00:45:43 +00:00
l10n daemon script
2448277211 GIT_SILENT made messages (after extraction) 2022-11-02 00:48:02 +00:00
l10n daemon script
817d00d2d8 GIT_SILENT Sync po/docbooks with svn 2022-11-01 02:04:45 +00:00
Yannik Sembritzki
9f9b565ce6 Separate persistent notification channel based on whether devices are connected
This allows users to selectively disable the persistent notification when no devices are connected.

BUG: 460927
2022-10-31 21:03:27 +00:00
Wojciech Matuszewski
70d70dcb33 Use a common thread pool instead of creating new threads manually
## Summary

Spawning new threads in Java is costly. This MR aims to use a common thread pool instead.

I've replaced all cases where a new thread is started just to perform a task in the background. This does not include cases where a reference to the newly created thread is kept as a part of application logic – this is probably a problem in itself, but it exceeds the scope of this quick optimization. ;) 

There was a couple of cases where a new thread was spawned just to sleep for a while an then change the state on a View on the main thread. I've replaced those with posting those deferred tasks to the View's message queue.

## Test Plan

Everything should work the same as it has before, just a bit faster and easier on the memory.
2022-10-31 20:59:17 +00:00
Arun Parolikkal
31d1882c6a Basic support for A12 colors
Colors don't work in some cards, menus and the hamburger menu

## Summary

I'm trying to make KDEConnect pull colours from the Material 3.0
wallpaper in Android 12. I've managed to do this to an extent by editing
the xml files in res/values*. There are, however, certain UI elements
that do not respond to the changes I've made, with no obvious files
where their colours may be changed.

## Screenshots

### The devices screen looks great (Except "KDE Connect Devices" in the
App bar isn't themed.)

![Screenshot_20211215-175156_KDE_Connect](/uploads/f00a03a9857a696acbf3ba14a0d01e23/Screenshot_20211215-175156_KDE_Connect.png)

### The hamburger menu has a white color in light mode. Don't know where
this is set and how to change it

![Screenshot_20211215-175206_KDE_Connect](/uploads/349b2bf72596a388e445f7462672b358/Screenshot_20211215-175206_KDE_Connect.png)

### Three dot menu has a white colour

![Screenshot_20211215-175210_KDE_Connect](/uploads/4a3204de26233ac3f6ea612358e9387d/Screenshot_20211215-175210_KDE_Connect.png)

### Add new devices looks good too
![Screenshot_20211215-175221_KDE_Connect](/uploads/78db4cd796ba31bfb763b9e2fae6e216/Screenshot_20211215-175221_KDE_Connect.png)

### Not the popup menus though

![Screenshot_20211215-175225_KDE_Connect](/uploads/a0fb8dbf4c0cc1fd3a2774d5ff8fda00/Screenshot_20211215-175225_KDE_Connect.png)

### Cards in the About section are still white

![Screenshot_20211215-175235_KDE_Connect](/uploads/18d1b3337af45eb7c9bcb157a0b34357/Screenshot_20211215-175235_KDE_Connect.png)

### Dark mode works fine

![Screenshot_20211215-175255_KDE_Connect](/uploads/3c2777e3f97ab7f377c6ace8b83297f2/Screenshot_20211215-175255_KDE_Connect.png)

### But again, some UI elements like the hamburger menu aren't themed.

![Screenshot_20211215-175302_KDE_Connect](/uploads/2ea118e6a352bcf4d5dc8760495d7b12/Screenshot_20211215-175302_KDE_Connect.png)

I'll keep trying to figure out how to make these elements to their
proper colours, but I've done a lot of searching through the source and
couldn't figure out how. I'm absolutely new to Android development. Help
please.

## Test Plan

For the changes made thus far, none are needed.
2022-10-31 16:43:18 -04:00
l10n daemon script
aacd0fa32a GIT_SILENT Sync po/docbooks with svn 2022-10-31 02:39:16 +00:00
l10n daemon script
cfc67f6a3a GIT_SILENT Sync po/docbooks with svn 2022-10-24 02:03:06 +00:00
l10n daemon script
9bed548dc3 GIT_SILENT Sync po/docbooks with svn 2022-10-22 11:22:29 +00:00
l10n daemon script
b0d2e6f822 GIT_SILENT Sync po/docbooks with svn 2022-10-21 02:09:38 +00:00
l10n daemon script
48e0ff2714 GIT_SILENT Sync po/docbooks with svn 2022-10-20 02:55:57 +00:00
Wojciech M
9af94884f9 fix channel names not being set when creating notification channels 2022-10-17 20:42:07 +02:00
l10n daemon script
67e4b27915 GIT_SILENT made messages (after extraction) 2022-10-15 00:46:11 +00:00
l10n daemon script
8038f58507 GIT_SILENT made messages (after extraction) 2022-10-14 00:46:37 +00:00
Isira Seneviratne
90ac4d68cf Use NotificationChannelCompat. 2022-10-10 20:49:52 +00:00
Isira Seneviratne
59303c1d0f Update Gradle Plugin to 7.2.2. 2022-10-10 20:49:22 +00:00
Simon Redman
5487d72c29 [SMS Plugin] Return conversation results one-by-one to more quickly populate the GUI
## Summary

Since !158, fetching messages has been painfully slow. This is because, instead of making one cursor (database) call, we needed to make two per conversation.

Unless someone finds a conversations URI which works on Samsung devices and reliably returns data, there isn't much we can do about that. What we can do, is return each conversation more quickly to get the UI populated and to prevent blocking the main thread forever.

This attempts to return conversations ordered by most-recent first. If the conversations URI returns junk for the thread date, it will return in an undefined order.

## Test Plan

#itworksforme
2022-10-10 20:44:19 +00:00
l10n daemon script
8c6a8b87db GIT_SILENT Sync po/docbooks with svn 2022-10-09 02:07:50 +00:00
l10n daemon script
69d335fe7a GIT_SILENT made messages (after extraction) 2022-10-09 00:47:47 +00:00
l10n daemon script
d2d6856b85 GIT_SILENT Sync po/docbooks with svn 2022-10-05 01:58:46 +00:00
l10n daemon script
9bd3ec3087 GIT_SILENT Sync po/docbooks with svn 2022-10-03 02:40:16 +00:00
l10n daemon script
0d71aa5ba8 GIT_SILENT Sync po/docbooks with svn 2022-10-02 02:48:20 +00:00
l10n daemon script
b51657555a GIT_SILENT Add new file (after extraction) 2022-09-30 00:43:48 +00:00