2
0
mirror of https://github.com/KDE/kdeconnect-android synced 2025-10-13 13:57:57 +00:00

Use ClassIndex to create a list of plugins in compile time

Instead of manually initializing a map statically.
This commit is contained in:
Albert Vaca Cintora
2019-02-11 20:04:40 +01:00
parent 33c9f70cb5
commit 78b38b5a00
27 changed files with 89 additions and 101 deletions

View File

@@ -276,8 +276,8 @@ public class NetworkPacket {
np.mBody.put("deviceName", DeviceHelper.getDeviceName(context));
np.mBody.put("protocolVersion", NetworkPacket.ProtocolVersion);
np.mBody.put("deviceType", DeviceHelper.getDeviceType(context).toString());
np.mBody.put("incomingCapabilities", new JSONArray(PluginFactory.getIncomingCapabilities(context)));
np.mBody.put("outgoingCapabilities", new JSONArray(PluginFactory.getOutgoingCapabilities(context)));
np.mBody.put("incomingCapabilities", new JSONArray(PluginFactory.getIncomingCapabilities()));
np.mBody.put("outgoingCapabilities", new JSONArray(PluginFactory.getOutgoingCapabilities()));
} catch (Exception e) {
e.printStackTrace();
Log.e("NetworkPacakge", "Exception on createIdentityPacket");