From 5940e957a8c4a86e9e7b980785ce9de804c7a814 Mon Sep 17 00:00:00 2001 From: Philip Cohn-Cort Date: Mon, 13 Sep 2021 00:09:43 +0000 Subject: [PATCH] Display battery status at the bottom of each device on its `DeviceFragment` kdeconnect-android!105 --- res/layout/activity_device.xml | 156 ++++++------------ res/layout/list_item_with_icon_entry.xml | 11 +- res/layout/view_pair_error.xml | 37 +++++ res/layout/view_pair_request.xml | 77 +++++++++ res/values/strings.xml | 7 + .../Plugins/BatteryPlugin/BatteryPlugin.java | 37 ++++- .../BatteryPlugin/DeviceBatteryInfo.kt | 30 ++++ .../UserInterface/DeviceFragment.java | 89 +++++++++- 8 files changed, 326 insertions(+), 118 deletions(-) create mode 100644 res/layout/view_pair_error.xml create mode 100644 res/layout/view_pair_request.xml create mode 100644 src/org/kde/kdeconnect/Plugins/BatteryPlugin/DeviceBatteryInfo.kt diff --git a/res/layout/activity_device.xml b/res/layout/activity_device.xml index 9f2f4cb1..a0505c05 100644 --- a/res/layout/activity_device.xml +++ b/res/layout/activity_device.xml @@ -1,126 +1,68 @@ - - - - - - - - -