2
0
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:
Albert Vaca
2013-07-24 23:51:06 +02:00
parent 91e99806ee
commit 61990fec50
2 changed files with 5 additions and 1 deletions

View File

@@ -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);

View File

@@ -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