Fix edit contact and start at boot
This commit is contained in:
parent
f01ef97edd
commit
2f174922b8
4 changed files with 9 additions and 3 deletions
|
@ -15,6 +15,7 @@ size=qvga
|
|||
sharing_server=https://www.linphone.org:444/lft.php
|
||||
tunnel=disabled
|
||||
push_notification=1
|
||||
auto_start=1
|
||||
|
||||
[tunnel]
|
||||
host=
|
||||
|
|
|
@ -262,7 +262,7 @@ public class ContactDetailsFragment extends Fragment implements OnClickListener
|
|||
dialog.show();
|
||||
}
|
||||
if (id == R.id.back) {
|
||||
getFragmentManager().popBackStackImmediate();
|
||||
LinphoneActivity.instance().displayContacts(false);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -160,7 +160,12 @@ public class ContactEditorFragment extends Fragment {
|
|||
e.printStackTrace();
|
||||
}
|
||||
|
||||
getFragmentManager().popBackStackImmediate();
|
||||
Contact updatedContact = contactsManager.findContactWithDisplayName(contactsManager.getDisplayName(firstName.getText().toString(), lastName.getText().toString()));
|
||||
if(updatedContact != null) {
|
||||
LinphoneActivity.instance().displayContact(updatedContact, false);
|
||||
} else {
|
||||
LinphoneActivity.instance().displayContacts(false);
|
||||
}
|
||||
|
||||
if(LinphoneActivity.instance().getResources().getBoolean(R.bool.isTablet))
|
||||
ContactsListFragment.instance().invalidate();
|
||||
|
|
|
@ -1031,7 +1031,7 @@ public class LinphonePreferences {
|
|||
}
|
||||
|
||||
public boolean isAutoStartEnabled() {
|
||||
return getConfig().getBool("app", "auto_start", true);
|
||||
return getConfig().getBool("app", "auto_start", false);
|
||||
}
|
||||
|
||||
public void setAutoStart(boolean autoStartEnabled) {
|
||||
|
|
Loading…
Reference in a new issue