summaryrefslogtreecommitdiff
path: root/app/src/main/java
diff options
context:
space:
mode:
authorcyberta <cyberta@riseup.net>2023-01-19 18:47:14 +0100
committercyberta <cyberta@riseup.net>2023-01-19 18:47:14 +0100
commit108b886f43feeb861807deddfcb1ab241330e242 (patch)
treea52ea42ad366067c93faaadc4093ed05cb0dd640 /app/src/main/java
parentb0f96ee9ca2c612836f1a59222b1148b763fbedd (diff)
improve screenshot tests, run in different languages, test more Fragments/Activities
Diffstat (limited to 'app/src/main/java')
-rw-r--r--app/src/main/java/se/leap/bitmaskclient/base/views/MainButton.java2
1 files changed, 2 insertions, 0 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 fc86fc0b..c7273613 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
@@ -48,10 +48,12 @@ public class MainButton extends RelativeLayout {
public void updateState(boolean isOn, boolean isProcessing) {
if (isProcessing) {
button.setImageDrawable(ContextCompat.getDrawable(getContext(), R.drawable.button_circle_cancel));
+ button.setTag("button_circle_cancel");
} else {
button.setImageDrawable(
ContextCompat.getDrawable(getContext(),
isOn ? R.drawable.button_circle_stop : R.drawable.button_circle_start));
+ button.setTag(isOn ? "button_circle_stop" : "button_circle_start");
}
}
}