mirror of
https://github.com/leanote/leanote-android.git
synced 2025-10-15 06:40:58 +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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@@ -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