2
0
mirror of https://github.com/KDE/kdeconnect-android synced 2025-08-31 06:05:12 +00:00

Rename updateComputerList -> updateDeviceList

This commit is contained in:
Nicolas Fella
2019-04-20 03:03:15 +02:00
parent 882afbbc43
commit f4a4046b3b

View File

@@ -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