Commit f4a4046b authored by Nicolas Fella's avatar Nicolas Fella

Rename updateComputerList -> updateDeviceList

parent 882afbbc
......@@ -98,7 +98,7 @@ public class PairingFragment extends Fragment implements PairingDeviceItem.Callb
}
private void updateComputerListAction() {
updateComputerList();
updateDeviceList();
BackgroundService.RunCommand(mActivity, BackgroundService::onNetworkChange);
mSwipeRefreshLayout.setRefreshing(true);
new Thread(() -> {
......@@ -110,7 +110,7 @@ public class PairingFragment extends Fragment implements PairingDeviceItem.Callb
}).start();
}
private void updateComputerList() {
private void updateDeviceList() {
BackgroundService.RunCommand(mActivity, service -> mActivity.runOnUiThread(() -> {
if (!isAdded()) {
......@@ -197,8 +197,8 @@ public class PairingFragment extends Fragment implements PairingDeviceItem.Callb
@Override
public void onStart() {
super.onStart();
BackgroundService.RunCommand(mActivity, service -> service.addDeviceListChangedCallback("PairingFragment", this::updateComputerList));
updateComputerList();
BackgroundService.RunCommand(mActivity, service -> service.addDeviceListChangedCallback("PairingFragment", this::updateDeviceList));
updateDeviceList();
}
@Override
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment