aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/de/pixart
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2018-05-21 21:38:15 +0200
committerChristian Schneppe <christian@pix-art.de>2018-05-21 21:38:15 +0200
commit95db2118b2ef8e8ff41bc184bdead1265e91dd2c (patch)
treec642e8e81fe61da73f3016120bfe19379061491e /src/main/java/de/pixart
parent23352d59e469fc2706b57cd5c5a7fcfd942feee8 (diff)
use correct binding in EditAccountActivity
Diffstat (limited to 'src/main/java/de/pixart')
-rw-r--r--src/main/java/de/pixart/messenger/ui/EditAccountActivity.java6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/main/java/de/pixart/messenger/ui/EditAccountActivity.java b/src/main/java/de/pixart/messenger/ui/EditAccountActivity.java
index 53ff2cff0..464ebde0f 100644
--- a/src/main/java/de/pixart/messenger/ui/EditAccountActivity.java
+++ b/src/main/java/de/pixart/messenger/ui/EditAccountActivity.java
@@ -28,7 +28,6 @@ import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.view.View.OnClickListener;
-import android.widget.Button;
import android.widget.CompoundButton;
import android.widget.CompoundButton.OnCheckedChangeListener;
import android.widget.EditText;
@@ -254,7 +253,6 @@ public class EditAccountActivity extends OmemoActivity implements OnAccountUpdat
private Toast mFetchingMamPrefsToast;
private String mSavedInstanceAccount;
private boolean mSavedInstanceInit = false;
- private Button mClearDevicesButton;
private XmppUri pendingUri = null;
private boolean mUseTor;
private ActivityEditAccountBinding binding;
@@ -1094,9 +1092,9 @@ public class EditAccountActivity extends OmemoActivity implements OnAccountUpdat
this.binding.otherDeviceKeysCard.setVisibility(View.VISIBLE);
Set<Integer> otherDevices = mAccount.getAxolotlService().getOwnDeviceIds();
if (otherDevices == null || otherDevices.isEmpty()) {
- mClearDevicesButton.setVisibility(View.GONE);
+ binding.clearDevices.setVisibility(View.GONE);
} else {
- mClearDevicesButton.setVisibility(View.VISIBLE);
+ binding.clearDevices.setVisibility(View.VISIBLE);
}
} else {
this.binding.otherDeviceKeysCard.setVisibility(View.GONE);