Fix exiting issue + AMRNB codec by default
This commit is contained in:
parent
4f373c07e7
commit
47f8aa2e85
2 changed files with 15 additions and 12 deletions
2
Makefile
2
Makefile
|
@ -48,7 +48,7 @@ prepare-mediastreamer2:
|
||||||
prepare-sources: prepare-ffmpeg prepare-ilbc prepare-vpx prepare-silk prepare-srtp prepare-mediastreamer2
|
prepare-sources: prepare-ffmpeg prepare-ilbc prepare-vpx prepare-silk prepare-srtp prepare-mediastreamer2
|
||||||
|
|
||||||
generate-libs:
|
generate-libs:
|
||||||
$(NDK_PATH)/ndk-build BUILD_SILK=1 -j$(NUMCPUS)
|
$(NDK_PATH)/ndk-build BUILD_SILK=1 BUILD_AMRNB=full -j$(NUMCPUS)
|
||||||
|
|
||||||
update-project:
|
update-project:
|
||||||
$(SDK_PATH)/android update project --path .
|
$(SDK_PATH)/android update project --path .
|
||||||
|
|
|
@ -137,10 +137,11 @@ public class StatusFragment extends Fragment {
|
||||||
}
|
}
|
||||||
|
|
||||||
private void populateSliderContent() {
|
private void populateSliderContent() {
|
||||||
sliderContent.setDividerHeight(0);
|
if (LinphoneManager.isInstanciated() && LinphoneManager.getLc() != null) {
|
||||||
AccountsListAdapter adapter = new AccountsListAdapter(LinphoneManager.getLc().getProxyConfigList());
|
AccountsListAdapter adapter = new AccountsListAdapter(LinphoneManager.getLc().getProxyConfigList());
|
||||||
sliderContent.setAdapter(adapter);
|
sliderContent.setAdapter(adapter);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public void registrationStateChanged(final RegistrationState state) {
|
public void registrationStateChanged(final RegistrationState state) {
|
||||||
if (!isAttached)
|
if (!isAttached)
|
||||||
|
@ -160,6 +161,7 @@ public class StatusFragment extends Fragment {
|
||||||
if (allAccountsLed == null)
|
if (allAccountsLed == null)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if (LinphoneManager.isInstanciated() && LinphoneManager.getLc() != null) {
|
||||||
allAccountsLed.removeAllViews();
|
allAccountsLed.removeAllViews();
|
||||||
for (LinphoneProxyConfig lpc : LinphoneManager.getLc().getProxyConfigList()) {
|
for (LinphoneProxyConfig lpc : LinphoneManager.getLc().getProxyConfigList()) {
|
||||||
ImageView led = new ImageView(getActivity());
|
ImageView led = new ImageView(getActivity());
|
||||||
|
@ -170,6 +172,7 @@ public class StatusFragment extends Fragment {
|
||||||
allAccountsLed.addView(led);
|
allAccountsLed.addView(led);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private int getStatusIconResource(LinphoneCore.RegistrationState state, boolean isDefaultAccount) {
|
private int getStatusIconResource(LinphoneCore.RegistrationState state, boolean isDefaultAccount) {
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in a new issue