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

2964 Commits

Author SHA1 Message Date
Thore Goebel
8e43ef421b Capture back press in Settings and About
The Settings and About fragments are arguably one logical layer below the PairingFragment (which feels like the "main screen").
Capture the back press and return to the PairingFragment.

Fixes https://bugs.kde.org/show_bug.cgi?id=442716.

Notes:
- In a DeviceFragment back-pressing continues to close the app, as before. Judging from the fact that the app persists the last selected device to the shared prefs, I assume this is a intentional.
- I also thought about storing from where the Settings/About were opened (e.g. from a specific DeviceFragment) and returning there. However this would be a much larger change with arguable user benefit. After all, from the PairingFragment it's just a single click to your device.
2022-04-21 00:54:42 +00:00
l10n daemon script
cbabc40e7b GIT_SILENT made messages (after extraction) 2022-04-21 00:43:49 +00:00
l10n daemon script
91709c5a2a GIT_SILENT made messages (after extraction) 2022-04-17 00:46:22 +00:00
l10n daemon script
222f748211 GIT_SILENT made messages (after extraction) 2022-04-12 00:43:22 +00:00
Thore Goebel
a2c20d93f2 Set action bar title in SettingsFragment
Set the title "Settings" to the action bar in the SettingsFragment.

Previously, depending on where you came from, it just read "KDE Connect Devices", "About" or the device name.
2022-04-09 16:39:58 +00:00
l10n daemon script
a2d7a1b58a GIT_SILENT made messages (after extraction) 2022-03-30 00:50:21 +00:00
l10n daemon script
3dafea53c9 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2022-03-29 02:08:04 +00:00
l10n daemon script
006eb5bc4a GIT_SILENT made messages (after extraction) 2022-03-19 00:43:53 +00:00
Albert Vaca Cintora
f628bbdabc Share plugin: Honor received last modified metadata 2022-03-06 12:49:08 +01:00
Albert Vaca Cintora
4fa634afa4 Upgrade gradle plugin 2022-03-03 23:58:23 +01:00
Jing Xia
3bf3cb1629 Automatically reconnect to trusted networks in the background on API 29+
## Problem

On Android 10 (API 29) or later, when a trusted network has been configured, if the mobile device rejoins the network while KDE Connect is running in the background, it doesn't reconnect to any paired devices in the trusted network. It only reconnects when the user brings the app to the foreground.

## Cause

Android 10 introduced [a separate permission for background location access](https://developer.android.com/about/versions/10/privacy/changes#app-access-device-location). 

When KDE Connect is running in the background with API 29+, [`TrustedNetworkHelper.currentSSID` fails to get the SSID](d22967f475/src/org/kde/kdeconnect/Helpers/TrustedNetworkHelper.java (L77)) because it doesn't have the required permission. This prevents KDE Connect from verifying whether a network is trusted.

## Solution

Make KDE Connect request for background location access permission.

To request for background location access, an app must [declare it in the manifest](https://developer.android.com/training/location/permissions#background), or else the option to to enable background location access won't appear in settings.

As a side note, the permission request dialog in `TrustedNetworksActivity` doesn't require changes because after Android 11, the option to allow background location no longer shows up in a dialog. [It has to be manually enabled in settings.](https://developer.android.com/training/location/permissions#background-dialog-target-sdk-version)

## Test Plan

### Before:
On Android 10 or later, configure a trusted network and pair with a device in it. Let KDE Connect run in the background. Disconnect from the trusted network and then rejoin. KDE Connect won't automatically reconnect to the paired device.

### After:
Do the same steps as above, except after configuring the trust network, go into settings and allow KDE Connect to access location all the time. After KDE Connect rejoins the trusted network, it should automatically reconnect to the paired device.

![kdeconnect_location_permission_settings](/uploads/c7d03de9f1fb1502d7036f45ccb811a0/kdeconnect_location_permission_settings.png)
2022-03-01 22:08:54 +00:00
l10n daemon script
22f47b660b GIT_SILENT made messages (after extraction) 2022-02-26 00:47:37 +00:00
l10n daemon script
bdf5f1e25a GIT_SILENT made messages (after extraction) 2022-02-24 00:43:35 +00:00
l10n daemon script
980cfaedad GIT_SILENT made messages (after extraction) 2022-02-21 00:43:16 +00:00
l10n daemon script
422ad0a11f GIT_SILENT made messages (after extraction) 2022-02-20 00:44:05 +00:00
l10n daemon script
9115e0f24b GIT_SILENT made messages (after extraction) 2022-02-18 00:44:24 +00:00
Manuel Jesús de la Fuente
5ba84c6e78 Add Android 8+ adaptive icons
![image](/uploads/a1aa9ed5e5ea5c8a0f39fb655299e79d/image.png)

Adds the Android 8+ style adaptive icons, using the app's highlight color for extra contrast against the current fallback white background behind the white phone border. This new icon follows the size and grid guidelines of material design, and was created as a 108dp@1x svg
2022-02-16 22:54:52 +00:00
l10n daemon script
90ceb073ae GIT_SILENT made messages (after extraction) 2022-02-16 00:44:51 +00:00
l10n daemon script
2b5943572c GIT_SILENT made messages (after extraction) 2022-02-14 00:43:20 +00:00
l10n daemon script
65a5e59d4b GIT_SILENT made messages (after extraction) 2022-02-13 00:42:54 +00:00
l10n daemon script
3a338609e8 GIT_SILENT made messages (after extraction) 2022-02-12 00:43:09 +00:00
l10n daemon script
62744ddae3 GIT_SILENT made messages (after extraction) 2022-02-07 00:44:04 +00:00
l10n daemon script
152b6e9a96 GIT_SILENT made messages (after extraction) 2022-02-06 00:46:27 +00:00
Manuel Jesús de la Fuente
ecd2752579 Make trashcan icon visible
BUG: 435986
2022-02-05 09:52:50 +00:00
l10n daemon script
9b2cd6a97f GIT_SILENT made messages (after extraction) 2022-02-05 00:43:21 +00:00
l10n daemon script
b50c79a2c4 GIT_SILENT made messages (after extraction) 2022-02-03 00:43:21 +00:00
l10n daemon script
4d13a90ba5 GIT_SILENT made messages (after extraction) 2022-02-02 00:44:16 +00:00
l10n daemon script
2587569af7 GIT_SILENT made messages (after extraction) 2022-01-31 00:43:21 +00:00
Albert Vaca Cintora
0f0740e3ac Remove unused imports 2022-01-25 21:18:38 +01:00
Albert Vaca Cintora
c9b2b53d59 Fix division by 0 2022-01-24 14:01:49 +01:00
Albert Vaca Cintora
209f0f8f43 Fix NPE if BackgroundService.instance() doesn't exist 2022-01-24 14:01:40 +01:00
Albert Vaca Cintora
db3f8f7f74 Release 1.19.1 v1.19.1 2022-01-24 01:56:10 +01:00
Albert Vaca Cintora
60ecec9751 Bump dependencies 2022-01-24 01:56:10 +01:00
Albert Vaca Cintora
6cf0ef79b2 Small tweaks suggested by static code analyzer 2022-01-24 01:56:10 +01:00
Albert Vaca Cintora
2d55f282a8 Hopefully fix some NPE crashes 2022-01-24 01:56:10 +01:00
Albert Vaca Cintora
5ef7154d5e Fix mpris control crashing (NPE) in landscape mode 2022-01-24 01:56:10 +01:00
l10n daemon script
1c137d5ca8 GIT_SILENT made messages (after extraction) 2022-01-24 00:42:50 +00:00
Albert Vaca Cintora
f747639304 Fix warning about resource IDs becoming non-final soon v1.19 2022-01-22 12:03:53 +01:00
Albert Vaca Cintora
6208e0babb Add icon for compose text menu item 2022-01-22 11:52:29 +01:00
Albert Vaca Cintora
7188285dac Compose text: close after sending 2022-01-22 11:52:05 +01:00
Albert Vaca Cintora
fe94854f02 Release 1.19.0 2022-01-22 11:33:36 +01:00
Albert Vaca Cintora
767fbdfdd9 Bump dependencies 2022-01-22 11:28:49 +01:00
Piyush Aggarwal
2a07c1f528 mousereceiverplugin: add support for back and forward mousebuttons 2022-01-22 10:27:55 +00:00
l10n daemon script
0a83597d3c GIT_SILENT made messages (after extraction) 2022-01-22 00:43:42 +00:00
l10n daemon script
e83b5c6e74 GIT_SILENT made messages (after extraction) 2022-01-18 00:43:30 +00:00
l10n daemon script
2468928b05 GIT_SILENT made messages (after extraction) 2022-01-17 00:42:44 +00:00
l10n daemon script
ae3ebec87c GIT_SILENT made messages (after extraction) 2022-01-16 00:43:14 +00:00
Forrest Hilton
64ad798d70 Added a screen to allow users to compose the key strokes to send.
Added a screen to allow users to compose the key strokes to send. This is necessary because the keyboard that appears on the mouse pad screen does not have the voice to text microphone button on my phone. Even if it could be made to appear as it does on my tablet, some kind of text buffering is necessary because the voice text will change its mind.
2022-01-15 20:35:45 +00:00
Maxim Leshchenko
a6339312e4 Fix crash 2022-01-15 20:30:19 +00:00
Maxim Leshchenko
d43c9aa325 Improve code 2022-01-15 20:30:19 +00:00