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,9 +137,10 @@ 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) {
|
||||||
|
@ -160,14 +161,16 @@ public class StatusFragment extends Fragment {
|
||||||
if (allAccountsLed == null)
|
if (allAccountsLed == null)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
allAccountsLed.removeAllViews();
|
if (LinphoneManager.isInstanciated() && LinphoneManager.getLc() != null) {
|
||||||
for (LinphoneProxyConfig lpc : LinphoneManager.getLc().getProxyConfigList()) {
|
allAccountsLed.removeAllViews();
|
||||||
ImageView led = new ImageView(getActivity());
|
for (LinphoneProxyConfig lpc : LinphoneManager.getLc().getProxyConfigList()) {
|
||||||
LinearLayout.LayoutParams params = new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.MATCH_PARENT);
|
ImageView led = new ImageView(getActivity());
|
||||||
led.setLayoutParams(params);
|
LinearLayout.LayoutParams params = new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.MATCH_PARENT);
|
||||||
led.setAdjustViewBounds(true);
|
led.setLayoutParams(params);
|
||||||
led.setImageResource(getStatusIconResource(lpc.getState(), false));
|
led.setAdjustViewBounds(true);
|
||||||
allAccountsLed.addView(led);
|
led.setImageResource(getStatusIconResource(lpc.getState(), false));
|
||||||
|
allAccountsLed.addView(led);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue