Added context argument to connectivity listener
This commit is contained in:
parent
b20cb3afb4
commit
8d1f2c6c40
2 changed files with 3 additions and 2 deletions
|
@ -869,7 +869,7 @@ public final class LinphoneManager implements LinphoneCoreListener {
|
|||
}
|
||||
|
||||
if (connectivityListener != null) {
|
||||
connectivityListener.onConnectivityChanged(eventInfo, cm);
|
||||
connectivityListener.onConnectivityChanged(mServiceContext, eventInfo, cm);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -24,6 +24,7 @@ import org.linphone.core.LinphoneCall.State;
|
|||
import org.linphone.core.LinphoneCore.GlobalState;
|
||||
import org.linphone.core.LinphoneCore.RegistrationState;
|
||||
|
||||
import android.content.Context;
|
||||
import android.media.MediaPlayer;
|
||||
import android.net.ConnectivityManager;
|
||||
import android.net.NetworkInfo;
|
||||
|
@ -70,6 +71,6 @@ public interface LinphoneSimpleListener {
|
|||
}
|
||||
|
||||
public static interface ConnectivityChangedListener extends LinphoneSimpleListener {
|
||||
void onConnectivityChanged(NetworkInfo eventInfo, ConnectivityManager cm);
|
||||
void onConnectivityChanged(Context context, NetworkInfo eventInfo, ConnectivityManager cm);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue