From 405dc258dbc9d85d5073b23d59236c0426cb1f9b Mon Sep 17 00:00:00 2001 From: Albert Vaca Date: Fri, 4 Sep 2015 06:05:21 -0700 Subject: [PATCH] Fixed DeviceFragment not loading the latest plugins list when displayed --- .../kdeconnect/NewUserInterface/DeviceFragment.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/org/kde/kdeconnect/NewUserInterface/DeviceFragment.java b/src/org/kde/kdeconnect/NewUserInterface/DeviceFragment.java index 4d0450da..386201a8 100644 --- a/src/org/kde/kdeconnect/NewUserInterface/DeviceFragment.java +++ b/src/org/kde/kdeconnect/NewUserInterface/DeviceFragment.java @@ -269,4 +269,17 @@ public class DeviceFragment extends Fragment { } + @Override + public void onResume() { + super.onResume(); + BackgroundService.RunCommand(mActivity, new BackgroundService.InstanceCallback() { + @Override + public void onServiceStart(BackgroundService service) { + if (mDeviceId != null) { + Device device = service.getDevice(mDeviceId); + device.reloadPluginsFromSettings(); + } + } + }); + } }