mirror of
https://github.com/KDE/kdeconnect-android
synced 2025-08-30 21:55:10 +00:00
Merge branch '0.9'
# Conflicts: # res/values-ca/strings.xml # res/values-fi/strings.xml # res/values-nl/strings.xml # res/values-pt-rBR/strings.xml # res/values-pt/strings.xml # res/values-sv/strings.xml # res/values-uk/strings.xml # res/values/strings.xml # src/org/kde/kdeconnect/Device.java
This commit is contained in:
@@ -1,8 +1,8 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
package="org.kde.kdeconnect_tp"
|
package="org.kde.kdeconnect_tp"
|
||||||
android:versionCode="905"
|
android:versionCode="907"
|
||||||
android:versionName="0.9">
|
android:versionName="0.9c">
|
||||||
|
|
||||||
<uses-sdk android:minSdkVersion="9"
|
<uses-sdk android:minSdkVersion="9"
|
||||||
android:targetSdkVersion="22" />
|
android:targetSdkVersion="22" />
|
||||||
|
@@ -52,6 +52,7 @@ import java.util.HashSet;
|
|||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
import java.util.Timer;
|
import java.util.Timer;
|
||||||
import java.util.TimerTask;
|
import java.util.TimerTask;
|
||||||
|
import java.util.concurrent.ConcurrentHashMap;
|
||||||
import java.util.concurrent.CopyOnWriteArrayList;
|
import java.util.concurrent.CopyOnWriteArrayList;
|
||||||
|
|
||||||
public class Device implements BaseLink.PackageReceiver {
|
public class Device implements BaseLink.PackageReceiver {
|
||||||
@@ -75,8 +76,8 @@ public class Device implements BaseLink.PackageReceiver {
|
|||||||
private ArrayList<String> incomingCapabilities;
|
private ArrayList<String> incomingCapabilities;
|
||||||
private ArrayList<String> outgoingCapabilities;
|
private ArrayList<String> outgoingCapabilities;
|
||||||
|
|
||||||
private final HashMap<String, Plugin> plugins = new HashMap<>();
|
private final ConcurrentHashMap<String, Plugin> plugins = new ConcurrentHashMap<>();
|
||||||
private final HashMap<String, Plugin> failedPlugins = new HashMap<>();
|
private final ConcurrentHashMap<String, Plugin> failedPlugins = new ConcurrentHashMap<>();
|
||||||
|
|
||||||
private ArrayList<String> unsupportedPlugins = new ArrayList<>();
|
private ArrayList<String> unsupportedPlugins = new ArrayList<>();
|
||||||
private HashSet<String> supportedIncomingInterfaces = new HashSet<>();
|
private HashSet<String> supportedIncomingInterfaces = new HashSet<>();
|
||||||
@@ -495,16 +496,12 @@ public class Device implements BaseLink.PackageReceiver {
|
|||||||
|
|
||||||
if (pairStatus == PairStatus.Requested) { //We started pairing
|
if (pairStatus == PairStatus.Requested) { //We started pairing
|
||||||
|
|
||||||
Log.i("KDE/Pairing","Pair answer");
|
|
||||||
|
|
||||||
hidePairingNotification();
|
hidePairingNotification();
|
||||||
|
|
||||||
pairingDone();
|
pairingDone();
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
Log.i("KDE/Pairing","Pair request");
|
|
||||||
|
|
||||||
Intent intent = new Intent(context, MaterialActivity.class);
|
Intent intent = new Intent(context, MaterialActivity.class);
|
||||||
intent.putExtra("deviceId", deviceId);
|
intent.putExtra("deviceId", deviceId);
|
||||||
PendingIntent pendingIntent = PendingIntent.getActivity(context, 0, intent, PendingIntent.FLAG_ONE_SHOT);
|
PendingIntent pendingIntent = PendingIntent.getActivity(context, 0, intent, PendingIntent.FLAG_ONE_SHOT);
|
||||||
@@ -877,11 +874,11 @@ public class Device implements BaseLink.PackageReceiver {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public HashMap<String,Plugin> getLoadedPlugins() {
|
public ConcurrentHashMap<String,Plugin> getLoadedPlugins() {
|
||||||
return plugins;
|
return plugins;
|
||||||
}
|
}
|
||||||
|
|
||||||
public HashMap<String,Plugin> getFailedPlugins() {
|
public ConcurrentHashMap<String,Plugin> getFailedPlugins() {
|
||||||
return failedPlugins;
|
return failedPlugins;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -301,7 +301,6 @@ public class DeviceFragment extends Fragment {
|
|||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
|
|
||||||
Log.e("DEVICE",device.getName() + device.isPairRequestedByOtherEnd() + device.isPairRequested());
|
|
||||||
if (device.isPairRequestedByOtherEnd()) {
|
if (device.isPairRequestedByOtherEnd()) {
|
||||||
((TextView) rootView.findViewById(R.id.pair_message)).setText(R.string.pair_requested);
|
((TextView) rootView.findViewById(R.id.pair_message)).setText(R.string.pair_requested);
|
||||||
rootView.findViewById(R.id.pair_progress).setVisibility(View.GONE);
|
rootView.findViewById(R.id.pair_progress).setVisibility(View.GONE);
|
||||||
|
Reference in New Issue
Block a user