diff options
author | steckbrief <steckbrief@chefmail.de> | 2016-03-29 11:53:34 +0200 |
---|---|---|
committer | steckbrief <steckbrief@chefmail.de> | 2016-03-29 11:53:34 +0200 |
commit | e388dfc0b8c32ea5916ae6f803217061dac58663 (patch) | |
tree | 64162bd7e68fbe0ae83b354ff7d6878948c2bee1 /src/main/java/eu/siacs/conversations/ui/PublishProfilePictureActivity.java | |
parent | 77b1f2138e19545a48ea93c97f8518a87b065831 (diff) | |
parent | 6244834096727cfc1aaaeba7845a6d9cfe27d2b0 (diff) |
Merge remote-tracking branch 'remotes/origin/trz/rename' into trz/rebase
Conflicts:
src/main/java/de/thedevstack/conversationsplus/ui/dialogs/MessageDetailsDialog.java
src/main/java/eu/siacs/conversations/ui/ChangePasswordActivity.java
src/main/java/eu/siacs/conversations/ui/TrustKeysActivity.java
src/main/java/eu/siacs/conversations/ui/VerifyOTRActivity.java
src/main/java/eu/siacs/conversations/ui/adapter/AccountAdapter.java
src/main/java/eu/siacs/conversations/ui/forms/FormFieldWrapper.java
src/main/java/eu/siacs/conversations/utils/UIHelper.java
Diffstat (limited to '')
-rw-r--r-- | src/main/java/eu/siacs/conversations/ui/PublishProfilePictureActivity.java | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/main/java/eu/siacs/conversations/ui/PublishProfilePictureActivity.java b/src/main/java/eu/siacs/conversations/ui/PublishProfilePictureActivity.java index 57fcf4e3..301baff5 100644 --- a/src/main/java/eu/siacs/conversations/ui/PublishProfilePictureActivity.java +++ b/src/main/java/eu/siacs/conversations/ui/PublishProfilePictureActivity.java @@ -22,6 +22,7 @@ import com.soundcloud.android.crop.Crop; import java.io.File; import java.io.FileNotFoundException; +import de.thedevstack.conversationsplus.ConversationsPlusColors; import de.thedevstack.conversationsplus.utils.ImageUtil; import eu.siacs.conversations.Config; import eu.siacs.conversations.R; @@ -85,7 +86,7 @@ public class PublishProfilePictureActivity extends XmppActivity { @Override public void run() { hintOrWarning.setText(errorCode); - hintOrWarning.setTextColor(getWarningTextColor()); + hintOrWarning.setTextColor(ConversationsPlusColors.warning()); publishButton.setText(R.string.publish); enablePublishButton(); } @@ -245,7 +246,7 @@ public class PublishProfilePictureActivity extends XmppActivity { } if (!support) { this.hintOrWarning - .setTextColor(getWarningTextColor()); + .setTextColor(ConversationsPlusColors.warning()); this.hintOrWarning .setText(R.string.error_publish_avatar_no_server_support); } @@ -288,7 +289,7 @@ public class PublishProfilePictureActivity extends XmppActivity { if (bm == null) { disablePublishButton(); - this.hintOrWarning.setTextColor(getWarningTextColor()); + this.hintOrWarning.setTextColor(ConversationsPlusColors.warning()); this.hintOrWarning .setText(R.string.error_publish_avatar_converting); return; @@ -298,10 +299,10 @@ public class PublishProfilePictureActivity extends XmppActivity { enablePublishButton(); this.publishButton.setText(R.string.publish); this.hintOrWarning.setText(R.string.publish_avatar_explanation); - this.hintOrWarning.setTextColor(getPrimaryTextColor()); + this.hintOrWarning.setTextColor(ConversationsPlusColors.primaryText()); } else { disablePublishButton(); - this.hintOrWarning.setTextColor(getWarningTextColor()); + this.hintOrWarning.setTextColor(ConversationsPlusColors.warning()); this.hintOrWarning .setText(R.string.error_publish_avatar_no_server_support); } @@ -316,12 +317,12 @@ public class PublishProfilePictureActivity extends XmppActivity { protected void enablePublishButton() { this.publishButton.setEnabled(true); - this.publishButton.setTextColor(getPrimaryTextColor()); + this.publishButton.setTextColor(ConversationsPlusColors.primaryText()); } protected void disablePublishButton() { this.publishButton.setEnabled(false); - this.publishButton.setTextColor(getSecondaryTextColor()); + this.publishButton.setTextColor(ConversationsPlusColors.secondaryText()); } public void refreshUiReal() { |