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:
parent
e78e9da908
commit
18e5210103
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user