From 93dad447508bbe998e59c2c5078969b476474cce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Rebelo?= Date: Sat, 18 Dec 2021 23:08:57 +0000 Subject: [PATCH] Keep device info on the correct device during reordering --- .../gadgetbridge/adapter/GBDeviceAdapterv2.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/adapter/GBDeviceAdapterv2.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/adapter/GBDeviceAdapterv2.java index 59ac9a664..398633c09 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/adapter/GBDeviceAdapterv2.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/adapter/GBDeviceAdapterv2.java @@ -108,7 +108,7 @@ public class GBDeviceAdapterv2 extends RecyclerView.Adapter deviceList; - private int expandedDevicePosition = RecyclerView.NO_POSITION; + private String expandedDeviceAddress = ""; private ViewGroup parent; private HashMap deviceActivityMap = new HashMap(); @@ -385,7 +385,7 @@ public class GBDeviceAdapterv2 extends RecyclerView.Adapter