diff options
author | cyberta <cyberta@riseup.net> | 2022-11-29 22:29:00 +0100 |
---|---|---|
committer | cyberta <cyberta@riseup.net> | 2022-11-30 14:24:46 +0100 |
commit | bac19fcc3c430405440527d36400ecb8726f9e5c (patch) | |
tree | 1ad9eb4ce8d37d465f37823ce6250ca0b84c1d26 /app/src/normal | |
parent | 980a6986db013304e02589c41020cdfa67215854 (diff) |
clean up, null view references
Diffstat (limited to 'app/src/normal')
-rw-r--r-- | app/src/normal/java/se.leap.bitmaskclient.base.fragments/EipFragment.java | 6 | ||||
-rw-r--r-- | app/src/normal/java/se/leap/bitmaskclient/base/views/MainButton.java | 9 |
2 files changed, 7 insertions, 8 deletions
diff --git a/app/src/normal/java/se.leap.bitmaskclient.base.fragments/EipFragment.java b/app/src/normal/java/se.leap.bitmaskclient.base.fragments/EipFragment.java index cccd6c23..2e291aad 100644 --- a/app/src/normal/java/se.leap.bitmaskclient.base.fragments/EipFragment.java +++ b/app/src/normal/java/se.leap.bitmaskclient.base.fragments/EipFragment.java @@ -268,6 +268,12 @@ public class EipFragment extends Fragment implements Observer { eipStatus.deleteObserver(this); providerObservable.deleteObserver(this); torStatusObservable.deleteObserver(this); + background = null; + mainButton = null; + locationButton = null; + mainDescription = null; + subDescription = null; + stateView = null; } private void saveStatus(boolean restartOnBoot) { 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)); } } - } |