diff --git a/AndroidManifest.xml b/AndroidManifest.xml index bd56003b..17a8da22 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -1,8 +1,8 @@ + android:versionCode="907" + android:versionName="0.9c"> diff --git a/src/org/kde/kdeconnect/Device.java b/src/org/kde/kdeconnect/Device.java index 10bc45bd..697ea45a 100644 --- a/src/org/kde/kdeconnect/Device.java +++ b/src/org/kde/kdeconnect/Device.java @@ -52,6 +52,7 @@ import java.util.HashSet; import java.util.Set; import java.util.Timer; import java.util.TimerTask; +import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.CopyOnWriteArrayList; public class Device implements BaseLink.PackageReceiver { @@ -75,8 +76,8 @@ public class Device implements BaseLink.PackageReceiver { private ArrayList incomingCapabilities; private ArrayList outgoingCapabilities; - private final HashMap plugins = new HashMap<>(); - private final HashMap failedPlugins = new HashMap<>(); + private final ConcurrentHashMap plugins = new ConcurrentHashMap<>(); + private final ConcurrentHashMap failedPlugins = new ConcurrentHashMap<>(); private ArrayList unsupportedPlugins = new ArrayList<>(); private HashSet supportedIncomingInterfaces = new HashSet<>(); @@ -495,16 +496,12 @@ public class Device implements BaseLink.PackageReceiver { if (pairStatus == PairStatus.Requested) { //We started pairing - Log.i("KDE/Pairing","Pair answer"); - hidePairingNotification(); pairingDone(); } else { - Log.i("KDE/Pairing","Pair request"); - Intent intent = new Intent(context, MaterialActivity.class); intent.putExtra("deviceId", deviceId); PendingIntent pendingIntent = PendingIntent.getActivity(context, 0, intent, PendingIntent.FLAG_ONE_SHOT); @@ -877,11 +874,11 @@ public class Device implements BaseLink.PackageReceiver { } } - public HashMap getLoadedPlugins() { + public ConcurrentHashMap getLoadedPlugins() { return plugins; } - public HashMap getFailedPlugins() { + public ConcurrentHashMap getFailedPlugins() { return failedPlugins; } diff --git a/src/org/kde/kdeconnect/UserInterface/DeviceFragment.java b/src/org/kde/kdeconnect/UserInterface/DeviceFragment.java index e6f3fd3b..77c6d992 100644 --- a/src/org/kde/kdeconnect/UserInterface/DeviceFragment.java +++ b/src/org/kde/kdeconnect/UserInterface/DeviceFragment.java @@ -301,7 +301,6 @@ public class DeviceFragment extends Fragment { @Override public void run() { - Log.e("DEVICE",device.getName() + device.isPairRequestedByOtherEnd() + device.isPairRequested()); if (device.isPairRequestedByOtherEnd()) { ((TextView) rootView.findViewById(R.id.pair_message)).setText(R.string.pair_requested); rootView.findViewById(R.id.pair_progress).setVisibility(View.GONE);