Minor improvements
This commit is contained in:
parent
e422b41704
commit
76e2d3bf97
4 changed files with 6 additions and 6 deletions
|
@ -356,6 +356,7 @@ public class LinphoneManager implements SensorEventListener {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void restartCore() {
|
public void restartCore() {
|
||||||
|
Log.w("[Manager] Restarting Core");
|
||||||
mCore.stop();
|
mCore.stop();
|
||||||
mCore.start();
|
mCore.start();
|
||||||
}
|
}
|
||||||
|
@ -363,8 +364,8 @@ public class LinphoneManager implements SensorEventListener {
|
||||||
private void destroyCore() {
|
private void destroyCore() {
|
||||||
Log.w("[Manager] Destroying Core");
|
Log.w("[Manager] Destroying Core");
|
||||||
if (LinphonePreferences.instance() != null) {
|
if (LinphonePreferences.instance() != null) {
|
||||||
// We set network reachable at false before destroy LC to not send register with expires
|
// We set network reachable at false before destroying the Core
|
||||||
// at 0
|
// to not send a register with expires at 0
|
||||||
if (LinphonePreferences.instance().isPushNotificationEnabled()) {
|
if (LinphonePreferences.instance().isPushNotificationEnabled()) {
|
||||||
Log.w(
|
Log.w(
|
||||||
"[Manager] Setting network reachability to False to prevent unregister and allow incoming push notifications");
|
"[Manager] Setting network reachability to False to prevent unregister and allow incoming push notifications");
|
||||||
|
|
|
@ -55,8 +55,8 @@ public class CallStatsFragment extends Fragment {
|
||||||
new CoreListenerStub() {
|
new CoreListenerStub() {
|
||||||
@Override
|
@Override
|
||||||
public void onCallStateChanged(
|
public void onCallStateChanged(
|
||||||
Core lc, Call call, Call.State cstate, String message) {
|
Core core, Call call, Call.State state, String message) {
|
||||||
if (cstate == Call.State.End || cstate == Call.State.Error) {
|
if (state == Call.State.End || state == Call.State.Error) {
|
||||||
mAdapter.updateListItems(
|
mAdapter.updateListItems(
|
||||||
Arrays.asList(LinphoneManager.getCore().getCalls()));
|
Arrays.asList(LinphoneManager.getCore().getCalls()));
|
||||||
}
|
}
|
||||||
|
|
|
@ -349,7 +349,7 @@ public class ChatMessagesFragment extends Fragment
|
||||||
new CoreListenerStub() {
|
new CoreListenerStub() {
|
||||||
@Override
|
@Override
|
||||||
public void onCallStateChanged(
|
public void onCallStateChanged(
|
||||||
Core lc, Call call, Call.State state, String message) {
|
Core core, Call call, Call.State state, String message) {
|
||||||
displayChatRoomHeader();
|
displayChatRoomHeader();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
@ -33,7 +33,6 @@ import org.linphone.core.Address;
|
||||||
import org.linphone.core.Core;
|
import org.linphone.core.Core;
|
||||||
import org.linphone.core.Friend;
|
import org.linphone.core.Friend;
|
||||||
import org.linphone.core.FriendCapability;
|
import org.linphone.core.FriendCapability;
|
||||||
import org.linphone.core.FriendList;
|
|
||||||
import org.linphone.core.PresenceBasicStatus;
|
import org.linphone.core.PresenceBasicStatus;
|
||||||
import org.linphone.core.PresenceModel;
|
import org.linphone.core.PresenceModel;
|
||||||
import org.linphone.core.SubscribePolicy;
|
import org.linphone.core.SubscribePolicy;
|
||||||
|
|
Loading…
Reference in a new issue