mirror of
https://github.com/leanote/leanote-android.git
synced 2025-10-14 22:25:40 +00:00
notify success
This commit is contained in:
@@ -230,6 +230,7 @@ public class SettingsActivity extends BaseActivity {
|
||||
Account account = AccountService.getCurrent();
|
||||
account.setUserName(username);
|
||||
account.update();
|
||||
ToastUtils.show(SettingsActivity.this, R.string.change_user_name_successful);
|
||||
} else {
|
||||
mUserNameTv.setText(AccountService.getCurrent().getUserName());
|
||||
ToastUtils.show(SettingsActivity.this, R.string.change_user_name_failed);
|
||||
@@ -257,6 +258,8 @@ public class SettingsActivity extends BaseActivity {
|
||||
public void onNext(BaseResponse baseResponse) {
|
||||
if (!baseResponse.isOk()) {
|
||||
ToastUtils.show(SettingsActivity.this, R.string.change_password_failed);
|
||||
} else {
|
||||
ToastUtils.show(SettingsActivity.this, R.string.change_password_successful);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
@@ -60,4 +60,6 @@
|
||||
<string name="version">Version</string>
|
||||
<string name="about">About</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>
|
||||
|
Reference in New Issue
Block a user