Restore state for speaker/mute in call
This commit is contained in:
parent
2207df26da
commit
253a699837
1 changed files with 6 additions and 3 deletions
|
@ -46,6 +46,7 @@ import android.net.Uri;
|
|||
import android.os.Bundle;
|
||||
import android.os.CountDownTimer;
|
||||
import android.os.Handler;
|
||||
import android.os.PowerManager;
|
||||
import android.os.SystemClock;
|
||||
import android.app.Fragment;
|
||||
import android.support.v4.widget.DrawerLayout;
|
||||
|
@ -98,6 +99,8 @@ public class CallActivity extends Activity implements OnClickListener {
|
|||
private CountDownTimer timer;
|
||||
private boolean isVideoCallPaused = false;
|
||||
|
||||
|
||||
|
||||
private LinearLayout callsList, conferenceList;
|
||||
private LayoutInflater inflater;
|
||||
private ViewGroup container;
|
||||
|
@ -175,9 +178,6 @@ public class CallActivity extends Activity implements OnClickListener {
|
|||
|
||||
enableAndRefreshInCallActions();
|
||||
|
||||
LinphoneManager.getLc().enableSpeaker(isSpeakerEnabled);
|
||||
isMicMuted = LinphoneManager.getLc().isMicMuted();
|
||||
|
||||
if (status != null) {
|
||||
videoProgress.setVisibility(View.GONE);
|
||||
status.refreshStatusItems(call, isVideoEnabled(call));
|
||||
|
@ -250,6 +250,9 @@ public class CallActivity extends Activity implements OnClickListener {
|
|||
isVideoCallPaused = savedInstanceState.getBoolean("VideoCallPaused");
|
||||
refreshInCallActions();
|
||||
return;
|
||||
} else {
|
||||
isSpeakerEnabled = LinphoneManager.getLc().isSpeakerEnabled();
|
||||
isMicMuted = LinphoneManager.getLc().isMicMuted();
|
||||
}
|
||||
|
||||
Fragment callFragment;
|
||||
|
|
Loading…
Reference in a new issue