Skip to content

Commit

Permalink
Merge pull request #9 from FedericoQuarin/ramaValen
Browse files Browse the repository at this point in the history
por favor github dejame actualizar todo
  • Loading branch information
Valenreynoso17 authored Sep 16, 2022
2 parents 9dae39f + 8d88827 commit 257aaef
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions app/src/main/java/chort_quarin_reynoso/bancoutn/Actividad2.java
Original file line number Diff line number Diff line change
Expand Up @@ -138,5 +138,19 @@ public void afterTextChanged(Editable editable) {
}
});

buttonConfirmar.setOnClickListener(view -> {
Intent i = new Intent();
String capital = textEditCapitalAInvertir.getText().toString();

if (TextUtils.isEmpty(capital)) {
textEditCapitalAInvertir.setError("Campo obligatorio");
}
else {
i.putExtra("capital", capital);
i.putExtra("dias", seekbar.getProgress());
setResult(0, i);
finish();
}
});
}
}

0 comments on commit 257aaef

Please sign in to comment.