Fix crash
This commit is contained in:
parent
7e9be44511
commit
7d593f817c
1 changed files with 9 additions and 3 deletions
|
@ -119,7 +119,7 @@ public class StatusFragment extends Fragment implements LinphoneNotifyListener,
|
||||||
|
|
||||||
LinphoneProxyConfig lpc = lc.getDefaultProxyConfig();
|
LinphoneProxyConfig lpc = lc.getDefaultProxyConfig();
|
||||||
if (lpc != null) {
|
if (lpc != null) {
|
||||||
registrationState(lc, null, lpc.getState(), null);
|
registrationState(lc, lpc, lpc.getState(), null);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -199,8 +199,14 @@ public class StatusFragment extends Fragment implements LinphoneNotifyListener,
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
statusLed.setImageResource(getStatusIconResource(state, true));
|
mHandler.post(new Runnable() {
|
||||||
statusText.setText(getStatusIconText(state));
|
@Override
|
||||||
|
public void run() {
|
||||||
|
statusLed.setImageResource(getStatusIconResource(state, true));
|
||||||
|
statusText.setText(getStatusIconText(state));
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
try {
|
try {
|
||||||
if (getResources().getBoolean(R.bool.lock_statusbar)) {
|
if (getResources().getBoolean(R.bool.lock_statusbar)) {
|
||||||
statusText.setOnClickListener(new OnClickListener() {
|
statusText.setOnClickListener(new OnClickListener() {
|
||||||
|
|
Loading…
Reference in a new issue