summaryrefslogtreecommitdiff
path: root/app/src/normal/java/se
diff options
context:
space:
mode:
authorcyberta <cyberta@riseup.net>2022-11-29 22:29:00 +0100
committercyberta <cyberta@riseup.net>2022-11-30 14:24:46 +0100
commitbac19fcc3c430405440527d36400ecb8726f9e5c (patch)
tree1ad9eb4ce8d37d465f37823ce6250ca0b84c1d26 /app/src/normal/java/se
parent980a6986db013304e02589c41020cdfa67215854 (diff)
clean up, null view references
Diffstat (limited to 'app/src/normal/java/se')
-rw-r--r--app/src/normal/java/se/leap/bitmaskclient/base/views/MainButton.java9
1 files changed, 1 insertions, 8 deletions
diff --git a/app/src/normal/java/se/leap/bitmaskclient/base/views/MainButton.java b/app/src/normal/java/se/leap/bitmaskclient/base/views/MainButton.java
index d8766e6b..715063b5 100644
--- a/app/src/normal/java/se/leap/bitmaskclient/base/views/MainButton.java
+++ b/app/src/normal/java/se/leap/bitmaskclient/base/views/MainButton.java
@@ -17,12 +17,6 @@ public class MainButton extends RelativeLayout {
private static final String TAG = MainButton.class.getSimpleName();
AppCompatImageView button;
- VMainButtonBinding binding;
-
- private boolean isOn = false;
- private boolean isProcessing = false;
- private boolean isError = true;
-
public MainButton(Context context) {
super(context);
@@ -47,7 +41,7 @@ public class MainButton extends RelativeLayout {
}
private void initLayout(Context context) {
- binding = VMainButtonBinding.inflate(LayoutInflater.from(context), this, true);
+ VMainButtonBinding binding = VMainButtonBinding.inflate(LayoutInflater.from(context), this, true);
button = binding.button;
}
@@ -60,5 +54,4 @@ public class MainButton extends RelativeLayout {
isOn ? R.drawable.button_circle_stop : R.drawable.button_circle_start));
}
}
-
}