summaryrefslogtreecommitdiff
path: root/app/src/main/java/se/leap
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/main/java/se/leap')
-rw-r--r--app/src/main/java/se/leap/bitmaskclient/base/views/MainButton.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/app/src/main/java/se/leap/bitmaskclient/base/views/MainButton.java b/app/src/main/java/se/leap/bitmaskclient/base/views/MainButton.java
index 2fcc036e..e322e6c6 100644
--- a/app/src/main/java/se/leap/bitmaskclient/base/views/MainButton.java
+++ b/app/src/main/java/se/leap/bitmaskclient/base/views/MainButton.java
@@ -61,13 +61,11 @@ public class MainButton extends RelativeLayout {
}
public void setCustomDrawable(@DrawableRes int drawableResource) {
- // Drawable drawable = ContextCompat.getDrawable(getContext(), drawableResource);
- Drawable drawable = getContext().getDrawable(drawableResource);
+ Drawable drawable = ContextCompat.getDrawable(getContext(), drawableResource);
if (drawable == null) {
return;
}
- drawable.setColorFilter(ContextCompat.getColor(getContext(), R.color.colorPrimaryLight), PorterDuff.Mode.MULTIPLY);
button.setImageDrawable(drawable);
button.setTag("button_setup_circle_custom");
}