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

Made capabilities static like in /r/128386/

This commit is contained in:
Albert Vaca
2016-07-06 17:45:01 +02:00
parent ed9b804693
commit de81a20f82
7 changed files with 105 additions and 154 deletions

View File

@@ -121,9 +121,10 @@ public class DeviceFragment extends Fragment {
refreshUI();
if (!device.hasPluginsLoaded()) {
device.reloadPluginsFromSettings();
}
//TODO: Is this needed?
//if (!device.hasPluginsLoaded() && device.isReachable()) {
// device.reloadPluginsFromSettings();
//}
}
});
@@ -283,17 +284,21 @@ public class DeviceFragment extends Fragment {
@Override
public void onResume() {
super.onResume();
//TODO: Is this needed?
/*
BackgroundService.RunCommand(mActivity, new BackgroundService.InstanceCallback() {
@Override
public void onServiceStart(BackgroundService service) {
if (mDeviceId != null) {
Device device = service.getDevice(mDeviceId);
if (device != null) {
if (device != null && device.isReachable()) {
device.reloadPluginsFromSettings();
}
}
}
});
*/
getView().setFocusableInTouchMode(true);
getView().requestFocus();