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.Bundle;
|
||||||
import android.os.CountDownTimer;
|
import android.os.CountDownTimer;
|
||||||
import android.os.Handler;
|
import android.os.Handler;
|
||||||
|
import android.os.PowerManager;
|
||||||
import android.os.SystemClock;
|
import android.os.SystemClock;
|
||||||
import android.app.Fragment;
|
import android.app.Fragment;
|
||||||
import android.support.v4.widget.DrawerLayout;
|
import android.support.v4.widget.DrawerLayout;
|
||||||
|
@ -98,6 +99,8 @@ public class CallActivity extends Activity implements OnClickListener {
|
||||||
private CountDownTimer timer;
|
private CountDownTimer timer;
|
||||||
private boolean isVideoCallPaused = false;
|
private boolean isVideoCallPaused = false;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
private LinearLayout callsList, conferenceList;
|
private LinearLayout callsList, conferenceList;
|
||||||
private LayoutInflater inflater;
|
private LayoutInflater inflater;
|
||||||
private ViewGroup container;
|
private ViewGroup container;
|
||||||
|
@ -175,9 +178,6 @@ public class CallActivity extends Activity implements OnClickListener {
|
||||||
|
|
||||||
enableAndRefreshInCallActions();
|
enableAndRefreshInCallActions();
|
||||||
|
|
||||||
LinphoneManager.getLc().enableSpeaker(isSpeakerEnabled);
|
|
||||||
isMicMuted = LinphoneManager.getLc().isMicMuted();
|
|
||||||
|
|
||||||
if (status != null) {
|
if (status != null) {
|
||||||
videoProgress.setVisibility(View.GONE);
|
videoProgress.setVisibility(View.GONE);
|
||||||
status.refreshStatusItems(call, isVideoEnabled(call));
|
status.refreshStatusItems(call, isVideoEnabled(call));
|
||||||
|
@ -250,6 +250,9 @@ public class CallActivity extends Activity implements OnClickListener {
|
||||||
isVideoCallPaused = savedInstanceState.getBoolean("VideoCallPaused");
|
isVideoCallPaused = savedInstanceState.getBoolean("VideoCallPaused");
|
||||||
refreshInCallActions();
|
refreshInCallActions();
|
||||||
return;
|
return;
|
||||||
|
} else {
|
||||||
|
isSpeakerEnabled = LinphoneManager.getLc().isSpeakerEnabled();
|
||||||
|
isMicMuted = LinphoneManager.getLc().isMicMuted();
|
||||||
}
|
}
|
||||||
|
|
||||||
Fragment callFragment;
|
Fragment callFragment;
|
||||||
|
|
Loading…
Reference in a new issue