mirror of
https://codeberg.org/r4v3r23/mysu.git
synced 2024-11-09 15:50:00 +00:00
UI/UX tweaks
This commit is contained in:
parent
5892f1c467
commit
b4084866ae
2 changed files with 6 additions and 1 deletions
|
@ -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();
|
||||
});
|
||||
}
|
||||
|
|
|
@ -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 -->
|
||||
|
|
Loading…
Reference in a new issue