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
|
sharing_server=https://www.linphone.org:444/lft.php
|
||||||
tunnel=disabled
|
tunnel=disabled
|
||||||
push_notification=1
|
push_notification=1
|
||||||
|
auto_start=1
|
||||||
|
|
||||||
[tunnel]
|
[tunnel]
|
||||||
host=
|
host=
|
||||||
|
|
|
@ -262,7 +262,7 @@ public class ContactDetailsFragment extends Fragment implements OnClickListener
|
||||||
dialog.show();
|
dialog.show();
|
||||||
}
|
}
|
||||||
if (id == R.id.back) {
|
if (id == R.id.back) {
|
||||||
getFragmentManager().popBackStackImmediate();
|
LinphoneActivity.instance().displayContacts(false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -160,7 +160,12 @@ public class ContactEditorFragment extends Fragment {
|
||||||
e.printStackTrace();
|
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))
|
if(LinphoneActivity.instance().getResources().getBoolean(R.bool.isTablet))
|
||||||
ContactsListFragment.instance().invalidate();
|
ContactsListFragment.instance().invalidate();
|
||||||
|
|
|
@ -1031,7 +1031,7 @@ public class LinphonePreferences {
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isAutoStartEnabled() {
|
public boolean isAutoStartEnabled() {
|
||||||
return getConfig().getBool("app", "auto_start", true);
|
return getConfig().getBool("app", "auto_start", false);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setAutoStart(boolean autoStartEnabled) {
|
public void setAutoStart(boolean autoStartEnabled) {
|
||||||
|
|
Loading…
Reference in a new issue