mirror of
https://github.com/deltachat/deltachat-android.git
synced 2025-10-03 17:59:39 +02:00
use change_contact_name
This commit is contained in:
parent
c1eff8362f
commit
b14b8eea9d
2 changed files with 3 additions and 3 deletions
|
@ -129,8 +129,8 @@ public class Rpc {
|
||||||
return getResult("get_account_file_size", accountId).getAsInt();
|
return getResult("get_account_file_size", accountId).getAsInt();
|
||||||
}
|
}
|
||||||
|
|
||||||
public int createContact(int accountId, String email, String name) throws RpcException {
|
public void changeContactName(int accountId, int contactId, String name) throws RpcException {
|
||||||
return getResult("create_contact", accountId, email, name).getAsInt();
|
getResult("change_contact_name", accountId, contactId, name);
|
||||||
}
|
}
|
||||||
|
|
||||||
public int addAccount() throws RpcException {
|
public int addAccount() throws RpcException {
|
||||||
|
|
|
@ -561,7 +561,7 @@ public class ProfileActivity extends PassphraseRequiredActionBarActivity
|
||||||
.setPositiveButton(android.R.string.ok, (dialog, whichButton) -> {
|
.setPositiveButton(android.R.string.ok, (dialog, whichButton) -> {
|
||||||
String newName = inputField.getText().toString();
|
String newName = inputField.getText().toString();
|
||||||
try {
|
try {
|
||||||
rpc.createContact(accountId, dcContact.getAddr(), newName);
|
rpc.changeContactName(accountId, contactId, newName);
|
||||||
} catch (RpcException e) {
|
} catch (RpcException e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue