Fix exiting issue + AMRNB codec by default

This commit is contained in:
Sylvain Berfini 2012-07-27 17:46:32 +02:00
parent 4f373c07e7
commit 47f8aa2e85
2 changed files with 15 additions and 12 deletions

View file

@ -48,7 +48,7 @@ prepare-mediastreamer2:
prepare-sources: prepare-ffmpeg prepare-ilbc prepare-vpx prepare-silk prepare-srtp prepare-mediastreamer2
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:
$(SDK_PATH)/android update project --path .

View file

@ -137,10 +137,11 @@ public class StatusFragment extends Fragment {
}
private void populateSliderContent() {
sliderContent.setDividerHeight(0);
if (LinphoneManager.isInstanciated() && LinphoneManager.getLc() != null) {
AccountsListAdapter adapter = new AccountsListAdapter(LinphoneManager.getLc().getProxyConfigList());
sliderContent.setAdapter(adapter);
}
}
public void registrationStateChanged(final RegistrationState state) {
if (!isAttached)
@ -160,6 +161,7 @@ public class StatusFragment extends Fragment {
if (allAccountsLed == null)
return;
if (LinphoneManager.isInstanciated() && LinphoneManager.getLc() != null) {
allAccountsLed.removeAllViews();
for (LinphoneProxyConfig lpc : LinphoneManager.getLc().getProxyConfigList()) {
ImageView led = new ImageView(getActivity());
@ -170,6 +172,7 @@ public class StatusFragment extends Fragment {
allAccountsLed.addView(led);
}
}
}
private int getStatusIconResource(LinphoneCore.RegistrationState state, boolean isDefaultAccount) {
try {