mirror of
https://github.com/leanote/leanote-android.git
synced 2025-10-15 23:00:55 +00:00
notify success
This commit is contained in:
@@ -230,6 +230,7 @@ public class SettingsActivity extends BaseActivity {
|
|||||||
Account account = AccountService.getCurrent();
|
Account account = AccountService.getCurrent();
|
||||||
account.setUserName(username);
|
account.setUserName(username);
|
||||||
account.update();
|
account.update();
|
||||||
|
ToastUtils.show(SettingsActivity.this, R.string.change_user_name_successful);
|
||||||
} else {
|
} else {
|
||||||
mUserNameTv.setText(AccountService.getCurrent().getUserName());
|
mUserNameTv.setText(AccountService.getCurrent().getUserName());
|
||||||
ToastUtils.show(SettingsActivity.this, R.string.change_user_name_failed);
|
ToastUtils.show(SettingsActivity.this, R.string.change_user_name_failed);
|
||||||
@@ -257,6 +258,8 @@ public class SettingsActivity extends BaseActivity {
|
|||||||
public void onNext(BaseResponse baseResponse) {
|
public void onNext(BaseResponse baseResponse) {
|
||||||
if (!baseResponse.isOk()) {
|
if (!baseResponse.isOk()) {
|
||||||
ToastUtils.show(SettingsActivity.this, R.string.change_password_failed);
|
ToastUtils.show(SettingsActivity.this, R.string.change_password_failed);
|
||||||
|
} else {
|
||||||
|
ToastUtils.show(SettingsActivity.this, R.string.change_password_successful);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@@ -19,13 +19,13 @@
|
|||||||
<string name="recent_notes">Recent notes</string>
|
<string name="recent_notes">Recent notes</string>
|
||||||
<string name="clear_data">Clear data</string>
|
<string name="clear_data">Clear data</string>
|
||||||
<string name="are_you_sure_to_delete_all_data_in_this_account">Are you sure to delete all notes and notebooks in this account?</string>
|
<string name="are_you_sure_to_delete_all_data_in_this_account">Are you sure to delete all notes and notebooks in this account?</string>
|
||||||
<string name="change_user_name">Change username</string>
|
<string name="change_user_name">Change user name</string>
|
||||||
<string name="change_password">Change password</string>
|
<string name="change_password">Change password</string>
|
||||||
<string name="log_out">Log out</string>
|
<string name="log_out">Log out</string>
|
||||||
<string name="are_your_sure_to_log_out">Are you sure to log out?</string>
|
<string name="are_your_sure_to_log_out">Are you sure to log out?</string>
|
||||||
<string name="choose_editor">Choose editor</string>
|
<string name="choose_editor">Choose editor</string>
|
||||||
<string name="clear_data_successful">Clear data successful</string>
|
<string name="clear_data_successful">Clear data successful</string>
|
||||||
<string name="change_user_name_failed">Change username failed</string>
|
<string name="change_user_name_failed">Change user name failed</string>
|
||||||
<string name="change_password_failed">Change password failed</string>
|
<string name="change_password_failed">Change password failed</string>
|
||||||
<string name="choose_notebook">Choose notebook</string>
|
<string name="choose_notebook">Choose notebook</string>
|
||||||
<string name="delete_note_failed">Delete note failed</string>
|
<string name="delete_note_failed">Delete note failed</string>
|
||||||
@@ -60,4 +60,6 @@
|
|||||||
<string name="version">Version</string>
|
<string name="version">Version</string>
|
||||||
<string name="about">About</string>
|
<string name="about">About</string>
|
||||||
<string name="preview">Preview</string>
|
<string name="preview">Preview</string>
|
||||||
|
<string name="change_password_successful">Change password successful</string>
|
||||||
|
<string name="change_user_name_successful">Change user name successful</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
Reference in New Issue
Block a user