Update status bar with default proxy

This commit is contained in:
Margaux Clerc 2015-02-20 16:04:45 +01:00
parent 8a79fe924e
commit 3d0fcf0879

View file

@ -115,18 +115,14 @@ public class StatusFragment extends Fragment {
mListener = new LinphoneCoreListenerBase(){
@Override
public void registrationState(final LinphoneCore lc, LinphoneProxyConfig proxy, final LinphoneCore.RegistrationState state, String smessage) {
public void registrationState(final LinphoneCore lc, final LinphoneProxyConfig proxy, final LinphoneCore.RegistrationState state, String smessage) {
if (!isAttached || !LinphoneService.isReady()) {
return;
}
mHandler.post(new Runnable() {
@Override
public void run() {
statusLed.setImageResource(getStatusIconResource(state, true));
statusText.setText(getStatusIconText(state));
}
});
if (lc.getDefaultProxyConfig().equals(proxy)) {
statusLed.setImageResource(getStatusIconResource(state, true));
statusText.setText(getStatusIconText(state));
}
try {
if (getResources().getBoolean(R.bool.lock_statusbar)) {