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

2818 Commits

Author SHA1 Message Date
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
l10n daemon script
8fc3d6f51a GIT_SILENT made messages (after extraction) 2022-09-23 00:44:48 +00:00
l10n daemon script
1106788e46 GIT_SILENT made messages (after extraction) 2022-09-22 00:44:24 +00:00
l10n daemon script
90fa265447 GIT_SILENT made messages (after extraction) 2022-09-20 00:45:18 +00:00
Albert Vaca Cintora
801e9a2647 Remove individual contributors' contact buttons from About
To encourage using project-wide, open channels instead of private emails.
2022-09-18 23:43:58 +02:00
l10n daemon script
7c1d62f60c GIT_SILENT made messages (after extraction) 2022-09-11 00:44:55 +00:00
l10n daemon script
854555b142 GIT_SILENT made messages (after extraction) 2022-09-05 00:43:56 +00:00
l10n daemon script
bb97c5c4cb GIT_SILENT made messages (after extraction) 2022-09-01 00:44:31 +00:00
l10n daemon script
f9ddea53e2 GIT_SILENT made messages (after extraction) 2022-08-27 00:46:29 +00:00
l10n daemon script
a725cb3ac2 GIT_SILENT made messages (after extraction) 2022-08-26 00:44:29 +00:00
l10n daemon script
f5b9eae272 GIT_SILENT made messages (after extraction) 2022-08-25 00:46:12 +00:00
l10n daemon script
252d0a492d GIT_SILENT Add new file (after extraction) 2022-08-24 00:46:24 +00:00
l10n daemon script
0fd9ff2bf8 GIT_SILENT made messages (after extraction) 2022-08-15 00:44:12 +00:00
l10n daemon script
305a1d4c78 GIT_SILENT made messages (after extraction) 2022-08-09 00:45:40 +00:00
Nicolas Fella
2285c9b4d3 Remove arcconfig
We are not using Phabricator anymore
2022-08-05 01:34:08 +02:00
Nicolas Fella
a94eeb4947 Revert "Remove arcconfig"
Had unrelated changes

This reverts commit 53e2e0be10.
2022-08-05 01:23:55 +02:00
Nicolas Fella
53e2e0be10 Remove arcconfig
We are not using Phabricator anymore
2022-08-05 01:23:26 +02:00
l10n daemon script
357867145e GIT_SILENT made messages (after extraction) 2022-08-01 00:43:56 +00:00
Mikhail Zolotukhin
fccbdf0699 Declare repositories and project name in settings.gradle
Official gradle docs recommend using settings.gradle file (see https://docs.gradle.org/current/userguide/organizing_gradle_projects.html#always_define_a_settings_file).
Blank Android projects in Android Studio declare their name and repositories in settings.gradle. Therefore, it makes sense to create such file here and add that information in it.

An explicit project name allows us to know exactly to what `project.name` resolves, instead of relying on the project root directory name, which can be changed by the developer locally.
2022-07-25 20:44:56 +00:00
l10n daemon script
9de62747f7 GIT_SILENT made messages (after extraction) 2022-07-14 00:44:59 +00:00
l10n daemon script
28c0ad3328 GIT_SILENT made messages (after extraction) 2022-07-10 00:46:44 +00:00
l10n daemon script
358dbee727 GIT_SILENT made messages (after extraction) 2022-07-09 00:44:54 +00:00
l10n daemon script
cfee01f820 GIT_SILENT made messages (after extraction) 2022-07-07 00:44:14 +00:00
l10n daemon script
461b096af3 GIT_SILENT made messages (after extraction) 2022-07-04 00:45:10 +00:00
Nicolas Fella
cf94436208 [mpris] Remove workarounds for Spotify
It looks like Spotify fixed its MPRIS impl and these things are no longer broken

There's no need to hide them from the UI any more
2022-06-27 23:15:37 +00:00
Ilmaz Gumerov
edc655da5a Add logs reading for sending clipboard on Android 10
Enable with:
adb -d shell pm grant org.kde.kdeconnect_tp android.permission.READ_LOGS;
adb -d shell appops set org.kde.kdeconnect_tp SYSTEM_ALERT_WINDOW allow;
adb -d shell am force-stop org.kde.kdeconnect_tp;
2022-06-27 17:00:34 -04:00
l10n daemon script
de1e68d62f GIT_SILENT made messages (after extraction) 2022-06-25 00:47:11 +00:00
Art Pinch
f1d0c9acc6 Fix MprisActivity crash in landscape orientation
## Summary

Fixed MprisActivity crash in landscape orientation caused by mismatched portrait and landscape layout resources

BUG: 435016

## Test Plan

### Before:
App crashed on MprisActivity when phone is switched to landscape orientation

### After:
App works normally in landscape mode
2022-06-09 02:10:37 +00:00
Nicolas Fella
f2481644ae Update Gradle plugin 2022-06-02 00:39:06 +02:00
Art Pinch
7080b43d2d Control remote device volume by volume keys when MPRIS session is active
Allows to control the volume of the default sink of the remote device by pressing phone volume keys on API21+ (Lollipop and onwards) when MPRIS session is active (i.e. MPRIS media control notification is present). Remote device should support System Volume Plugin and report its default sink. Volume controlling works both when the phone screen is off and on. When the screen is on, you'll see a new slider in the volume panel.

BUG: 398848
2022-06-01 22:35:54 +00:00
Ravi Mistry
8f49ff57ab Fix byte array conversions
## Summary

Currently, KDE Connect for Android doesn't show the last 2 characters of the verification key when pairing a device. This MR solves this issue.

This bug is caused by incomplete conversions from byte arrays to strings in `SslHelper.java`:

```java
for (int i = 0; i < hash.length - 1; i++) {
    formatter.format("%02x", hash[i]);
}
```
The ```i < hash.length -1``` converts the bytes in the array up to (inclusive) the penultimate one. Removing the ```- 1``` allows for the last byte to be converted (this is the missing 2 characters).

BUG: 445955

## Test Plan

### Before:
Selecting a desktop from the available devices, then clicking the `Request Pairing` button causes a 62 character key to be displayed. It is 2 characters short of the actual key, which can be seen on the desktop KDE Connect app.

### After:
Selecting the `Request Pairing` button now shows the whole verification key, as intended.
2022-05-30 21:28:03 +00:00
l10n daemon script
9834a690b4 GIT_SILENT made messages (after extraction) 2022-05-21 00:44:36 +00:00
l10n daemon script
5a64ff7ebd GIT_SILENT made messages (after extraction) 2022-05-10 00:44:37 +00:00