Fix date format in finish
fix some crash
This commit is contained in:
parent
6a2449f3b6
commit
acb734823c
4 changed files with 25 additions and 24 deletions
|
@ -9,11 +9,6 @@
|
||||||
<string name="notification_registered">Rekisteröity kohteeseen %s</string>
|
<string name="notification_registered">Rekisteröity kohteeseen %s</string>
|
||||||
<string name="notification_register_failure">Epäonnistui rekisteröidä kohteeseen %s</string>
|
<string name="notification_register_failure">Epäonnistui rekisteröidä kohteeseen %s</string>
|
||||||
<string name="sync_account_name">linphone yhteystiedot</string>
|
<string name="sync_account_name">linphone yhteystiedot</string>
|
||||||
<string name="history_date_format">VVV, p KKK esim. Maanantai, 1 Tam</string>
|
|
||||||
<string name="history_detail_date_format">vvvv/KK/dd - TT:mm - esim 2012/11/22 - 12:34</string>
|
|
||||||
<string name="messages_date_format">pp/KK, TT:mm esim 22/11, 12:34</string>
|
|
||||||
<string name="messages_list_date_format">pp/KK esim 22/11</string>
|
|
||||||
<string name="today_date_format">TT:mm esim. 11:11</string>
|
|
||||||
<string name="picture_name_format">linphone-mms-%s.jpg</string>
|
<string name="picture_name_format">linphone-mms-%s.jpg</string>
|
||||||
<string name="tunnel_host"></string>
|
<string name="tunnel_host"></string>
|
||||||
<!--Common-->
|
<!--Common-->
|
||||||
|
|
|
@ -479,9 +479,11 @@ public class ChatFragment extends Fragment implements OnClickListener, LinphoneC
|
||||||
|
|
||||||
public void dispayMessageList() {
|
public void dispayMessageList() {
|
||||||
messagesList.setChoiceMode(AbsListView.CHOICE_MODE_MULTIPLE);
|
messagesList.setChoiceMode(AbsListView.CHOICE_MODE_MULTIPLE);
|
||||||
|
if(chatRoom != null) {
|
||||||
adapter = new ChatMessageAdapter(getActivity(), chatRoom.getHistory());
|
adapter = new ChatMessageAdapter(getActivity(), chatRoom.getHistory());
|
||||||
messagesList.setAdapter(adapter);
|
messagesList.setAdapter(adapter);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private void displayChatHeader(LinphoneAddress address) {
|
private void displayChatHeader(LinphoneAddress address) {
|
||||||
if(contact != null) {
|
if(contact != null) {
|
||||||
|
@ -1049,11 +1051,13 @@ public class ChatFragment extends Fragment implements OnClickListener, LinphoneC
|
||||||
|
|
||||||
public List<ContactAddress>getContactsList(){
|
public List<ContactAddress>getContactsList(){
|
||||||
List<ContactAddress> list = new ArrayList<ContactAddress>();
|
List<ContactAddress> list = new ArrayList<ContactAddress>();
|
||||||
for(Contact con: ContactsManager.getInstance().getAllContacts()){
|
if(ContactsManager.getInstance().getAllContacts() != null) {
|
||||||
for(String numberOrAddress : con.getNumbersOrAddresses()){
|
for (Contact con : ContactsManager.getInstance().getAllContacts()) {
|
||||||
|
for (String numberOrAddress : con.getNumbersOrAddresses()) {
|
||||||
list.add(new ContactAddress(con, numberOrAddress));
|
list.add(new ContactAddress(con, numberOrAddress));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return list;
|
return list;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -316,6 +316,7 @@ public class StatusFragment extends Fragment {
|
||||||
super.onResume();
|
super.onResume();
|
||||||
|
|
||||||
LinphoneCore lc = LinphoneManager.getLcIfManagerNotDestroyedOrNull();
|
LinphoneCore lc = LinphoneManager.getLcIfManagerNotDestroyedOrNull();
|
||||||
|
if(lc != null) {
|
||||||
LinphoneCall call = lc.getCurrentCall();
|
LinphoneCall call = lc.getCurrentCall();
|
||||||
if (isInCall && (call != null || lc.getConferenceSize() > 1 || lc.getCallsNb() > 0)) {
|
if (isInCall && (call != null || lc.getConferenceSize() > 1 || lc.getCallsNb() > 0)) {
|
||||||
if (call != null) {
|
if (call != null) {
|
||||||
|
@ -329,6 +330,7 @@ public class StatusFragment extends Fragment {
|
||||||
// We are obviously connected
|
// We are obviously connected
|
||||||
statusLed.setImageResource(R.drawable.led_connected);
|
statusLed.setImageResource(R.drawable.led_connected);
|
||||||
statusText.setText(getString(R.string.status_connected));
|
statusText.setText(getString(R.string.status_connected));
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
statusText.setVisibility(View.VISIBLE);
|
statusText.setVisibility(View.VISIBLE);
|
||||||
encryption.setVisibility(View.GONE);
|
encryption.setVisibility(View.GONE);
|
||||||
|
|
|
@ -96,7 +96,7 @@ public class AssistantActivity extends Activity implements OnClickListener {
|
||||||
@Override
|
@Override
|
||||||
public void registrationState(LinphoneCore lc, LinphoneProxyConfig cfg, LinphoneCore.RegistrationState state, String smessage) {
|
public void registrationState(LinphoneCore lc, LinphoneProxyConfig cfg, LinphoneCore.RegistrationState state, String smessage) {
|
||||||
if(accountCreated && !newAccount){
|
if(accountCreated && !newAccount){
|
||||||
if(address != null && address.asString().equals(cfg.getIdentity()) ) {
|
if(address != null && address.asString().equals(cfg.getAddress().asString()) ) {
|
||||||
if (state == RegistrationState.RegistrationOk) {
|
if (state == RegistrationState.RegistrationOk) {
|
||||||
if(progress != null)
|
if(progress != null)
|
||||||
progress.dismiss();
|
progress.dismiss();
|
||||||
|
@ -341,7 +341,7 @@ public class AssistantActivity extends Activity implements OnClickListener {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
|
|
||||||
if(displayName != null && !displayName.equals("")){
|
if(address != null && displayName != null && !displayName.equals("")){
|
||||||
address.setDisplayName(displayName);
|
address.setDisplayName(displayName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue