mirror of
https://github.com/KDE/kdeconnect-android
synced 2025-08-30 21:55:10 +00:00
PauseMusicPackageInterface now supports MPRIS
Other small improvements
This commit is contained in:
@@ -37,6 +37,7 @@ public class TcpComputerLink extends BaseComputerLink {
|
||||
super.messageReceived(session, message);
|
||||
Log.e("TcpComputerLink","messageReceived (" + message.getClass() + ") " + message.toString());
|
||||
try {
|
||||
//We should receive a string thanks to the TextLineCodecFactory filter
|
||||
String theMessage = (String) message;
|
||||
NetworkPackage np = NetworkPackage.unserialize(theMessage);
|
||||
packageReceived(np);
|
||||
|
@@ -5,6 +5,7 @@ import android.content.BroadcastReceiver;
|
||||
import android.content.Context;
|
||||
import android.content.Intent;
|
||||
import android.content.pm.ApplicationInfo;
|
||||
import android.net.ConnectivityManager;
|
||||
import android.net.wifi.WifiManager;
|
||||
import android.os.IBinder;
|
||||
import android.util.Log;
|
||||
@@ -38,7 +39,9 @@ public class ServiceLauncher extends BroadcastReceiver
|
||||
}
|
||||
});
|
||||
} else if (action.equals(WifiManager.SUPPLICANT_CONNECTION_CHANGE_ACTION)
|
||||
|| action.equals(WifiManager.WIFI_STATE_CHANGED_ACTION)) {
|
||||
|| action.equals(WifiManager.WIFI_STATE_CHANGED_ACTION)
|
||||
|| action.equals(ConnectivityManager.CONNECTIVITY_ACTION)
|
||||
) {
|
||||
Log.e("KdeConnect", "Connection state changed, trying to connect");
|
||||
BackgroundService.RunCommand(context, new BackgroundService.InstanceCallback() {
|
||||
@Override
|
||||
|
Reference in New Issue
Block a user