warn user if account is offline during avatar publication
This commit is contained in:
parent
6d5f23213b
commit
187825d6c6
|
@ -250,8 +250,11 @@ public class PublishProfilePictureActivity extends XmppActivity {
|
||||||
if (!support) {
|
if (!support) {
|
||||||
this.hintOrWarning
|
this.hintOrWarning
|
||||||
.setTextColor(getWarningTextColor());
|
.setTextColor(getWarningTextColor());
|
||||||
this.hintOrWarning
|
if (account.getStatus() == Account.State.ONLINE) {
|
||||||
.setText(R.string.error_publish_avatar_no_server_support);
|
this.hintOrWarning.setText(R.string.error_publish_avatar_no_server_support);
|
||||||
|
} else {
|
||||||
|
this.hintOrWarning.setText(R.string.error_publish_avatar_offline);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
this.avatarUri = this.defaultUri;
|
this.avatarUri = this.defaultUri;
|
||||||
|
@ -306,8 +309,11 @@ public class PublishProfilePictureActivity extends XmppActivity {
|
||||||
} else {
|
} else {
|
||||||
disablePublishButton();
|
disablePublishButton();
|
||||||
this.hintOrWarning.setTextColor(getWarningTextColor());
|
this.hintOrWarning.setTextColor(getWarningTextColor());
|
||||||
this.hintOrWarning
|
if (account.getStatus() == Account.State.ONLINE) {
|
||||||
.setText(R.string.error_publish_avatar_no_server_support);
|
this.hintOrWarning.setText(R.string.error_publish_avatar_no_server_support);
|
||||||
|
} else {
|
||||||
|
this.hintOrWarning.setText(R.string.error_publish_avatar_offline);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (this.defaultUri != null && uri.equals(this.defaultUri)) {
|
if (this.defaultUri != null && uri.equals(this.defaultUri)) {
|
||||||
this.secondaryHint.setVisibility(View.INVISIBLE);
|
this.secondaryHint.setVisibility(View.INVISIBLE);
|
||||||
|
|
|
@ -692,4 +692,5 @@
|
||||||
<string name="pref_delete_omemo_identities">Delete OMEMO identities</string>
|
<string name="pref_delete_omemo_identities">Delete OMEMO identities</string>
|
||||||
<string name="pref_delete_omemo_identities_summary">Regenerate your OMEMO keys. All your contacts will have to verify you again. Use this only as a last resort.</string>
|
<string name="pref_delete_omemo_identities_summary">Regenerate your OMEMO keys. All your contacts will have to verify you again. Use this only as a last resort.</string>
|
||||||
<string name="delete_selected_keys">Delete selected keys</string>
|
<string name="delete_selected_keys">Delete selected keys</string>
|
||||||
|
<string name="error_publish_avatar_offline">You need to be connected to publish your avatar.</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
|
Loading…
Reference in New Issue