Proximity sensor added while in call
This commit is contained in:
parent
869284e9a0
commit
094ca2dc20
7 changed files with 17 additions and 9 deletions
5
convert.sh
Executable file
5
convert.sh
Executable file
|
@ -0,0 +1,5 @@
|
|||
#/bin/sh
|
||||
for file in *.png
|
||||
do
|
||||
convert $file -resize 67% $file
|
||||
done
|
Binary file not shown.
Before Width: | Height: | Size: 1.5 KiB |
Binary file not shown.
Before Width: | Height: | Size: 1.5 KiB |
Binary file not shown.
Before Width: | Height: | Size: 2.2 KiB |
Binary file not shown.
Before Width: | Height: | Size: 2.2 KiB |
|
@ -19,7 +19,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|||
*/
|
||||
import org.linphone.core.LinphoneAddress;
|
||||
import org.linphone.core.LinphoneCall;
|
||||
import org.linphone.core.Log;
|
||||
import org.linphone.core.LinphoneCall.State;
|
||||
import org.linphone.core.LinphoneCoreFactory;
|
||||
import org.linphone.ui.AvatarWithShadow;
|
||||
|
|
|
@ -86,7 +86,6 @@ public class InCallActivity extends FragmentActivity implements
|
|||
isVideoEnabled = call.getCurrentParamsCopy().getVideoEnabled();
|
||||
}
|
||||
}
|
||||
LinphoneManager.addListener(this);
|
||||
|
||||
if (savedInstanceState != null) {
|
||||
return;
|
||||
|
@ -612,13 +611,24 @@ public class InCallActivity extends FragmentActivity implements
|
|||
|
||||
@Override
|
||||
protected void onResume() {
|
||||
super.onResume();
|
||||
LinphoneManager.addListener(this);
|
||||
LinphoneManager.startProximitySensorForActivity(this);
|
||||
|
||||
if (isVideoEnabled) {
|
||||
displayVideoCallControlsIfHidden();
|
||||
} else {
|
||||
setCallControlsVisibleAndRemoveCallbacks();
|
||||
}
|
||||
|
||||
super.onResume();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onPause() {
|
||||
LinphoneManager.removeListener(this);
|
||||
LinphoneManager.startProximitySensorForActivity(this);
|
||||
|
||||
super.onPause();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -631,10 +641,4 @@ public class InCallActivity extends FragmentActivity implements
|
|||
public void bindAudioFragment(AudioCallFragment fragment) {
|
||||
audioCallFragment = fragment;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onDestroy() {
|
||||
LinphoneManager.removeListener(this);
|
||||
super.onDestroy();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue