mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-18 05:39:53 +01:00
Initialise addButton early to avoid NPE.
This commit is contained in:
@@ -79,6 +79,9 @@ public class ContactLinkExchangeFragment extends BaseFragment
|
|||||||
int color =
|
int color =
|
||||||
resolveColorAttribute(getContext(), R.attr.colorControlNormal);
|
resolveColorAttribute(getContext(), R.attr.colorControlNormal);
|
||||||
|
|
||||||
|
addButton = v.findViewById(R.id.addButton);
|
||||||
|
addButton.setOnClickListener(view -> onAddButtonClicked());
|
||||||
|
|
||||||
contactNameInput = v.findViewById(R.id.contactNameInput);
|
contactNameInput = v.findViewById(R.id.contactNameInput);
|
||||||
contactNameInput.addTextChangedListener(this);
|
contactNameInput.addTextChangedListener(this);
|
||||||
if (SDK_INT < 23) {
|
if (SDK_INT < 23) {
|
||||||
@@ -141,9 +144,6 @@ public class ContactLinkExchangeFragment extends BaseFragment
|
|||||||
if (activity != null) activity.showCode();
|
if (activity != null) activity.showCode();
|
||||||
});
|
});
|
||||||
|
|
||||||
addButton = v.findViewById(R.id.addButton);
|
|
||||||
addButton.setOnClickListener(view -> onAddButtonClicked());
|
|
||||||
|
|
||||||
return v;
|
return v;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user