2
0
mirror of https://github.com/KDE/kdeconnect-android synced 2025-09-06 17:15:09 +00:00

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
This commit is contained in:
Erik Duisters
2019-01-06 12:26:05 +01:00
parent 045e329b53
commit 9fb780f919
21 changed files with 569 additions and 181 deletions

View File

@@ -387,4 +387,8 @@ public class RemoteKeyboardPlugin extends Plugin {
np.set("state", state);
device.sendPacket(np);
}
String getDeviceId() {
return device.getDeviceId();
}
}