UI/UX tweaks

This commit is contained in:
pokkst 2023-02-03 20:23:23 -06:00
parent 5892f1c467
commit b4084866ae
No known key found for this signature in database
GPG Key ID: 90C2ED85E67A50FF
2 changed files with 6 additions and 1 deletions

View File

@ -174,6 +174,7 @@ public class SendFragment extends Fragment {
Toast.makeText(getActivity(), getString(R.string.creating_tx), Toast.LENGTH_SHORT).show();
createButton.setEnabled(false);
sendMaxButton.setEnabled(false);
createTx(dests, sendAll, priority);
});
@ -317,6 +318,7 @@ public class SendFragment extends Fragment {
EditText addressField = entryView.findViewById(R.id.address_edittext);
addressField.setText(uriData.getAddress());
if (uriData.hasAmount()) {
sendMaxButton.setEnabled(false);
EditText amountField = entryView.findViewById(R.id.amount_edittext);
amountField.setText(uriData.getAmount());
}
@ -336,6 +338,7 @@ public class SendFragment extends Fragment {
if (activity != null) {
activity.runOnUiThread(() -> {
createButton.setEnabled(true);
sendMaxButton.setEnabled(true);
Toast.makeText(getActivity(), getString(R.string.error_creating_tx), Toast.LENGTH_SHORT).show();
});
}
@ -345,6 +348,7 @@ public class SendFragment extends Fragment {
if (activity != null) {
activity.runOnUiThread(() -> {
createButton.setEnabled(true);
sendMaxButton.setEnabled(true);
Toast.makeText(getActivity(), e.getMessage(), Toast.LENGTH_SHORT).show();
});
}

View File

@ -51,7 +51,8 @@
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toStartOf="@id/send_max_button"
tools:ignore="SpeakableTextPresentCheck"
tools:visibility="visible" />
tools:visibility="visible"
app:tint="@color/oled_textColorPrimary" />
</androidx.constraintlayout.widget.ConstraintLayout>
<!-- CREATE LAYOUT -->