1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-19 00:19:25 +01:00

Fix Devices view asynchronous data retrieval

This commit is contained in:
Arjan Schrijver 2024-02-17 21:58:31 +01:00
parent e78e9da908
commit 18e5210103

View File

@ -112,7 +112,12 @@ public class ControlCenterv2 extends Fragment {
// get activity data asynchronously, this fills the deviceActivityHashMap
// and calls refreshPairedDevices() notifyDataSetChanged
createRefreshTask("get activity data", getActivity().getApplication()).execute();
deviceListView.post(new Runnable() {
@Override
public void run() {
createRefreshTask("get activity data", getActivity().getApplication()).execute();
}
});
fab = currentView.findViewById(R.id.fab);
fab.setOnClickListener(new View.OnClickListener() {