Skip to content
This repository has been archived by the owner on Sep 17, 2020. It is now read-only.

Commit

Permalink
Fix confirmation code issue and background color in plan list
Browse files Browse the repository at this point in the history
  • Loading branch information
AVM-Martin committed Jun 10, 2020
1 parent c8851f5 commit 8bc339f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ void loadData() {

if (data.getDate().before(CalendarUtils.getEndOfToday())) {
itemView.setBackgroundColor(ContextCompat.getColor(context, R.color.light_red));
} else {
itemView.setBackgroundColor(ContextCompat.getColor(context, R.color.white));
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,12 @@ private MessageUtils() {
// private method

private void generateConfirmationCode() {
confirmationCode = Integer.toString(new Random().nextInt(10000));
confirmationCode = (
Integer.toString(new Random().nextInt(10))
+ Integer.toString(new Random().nextInt(10))
+ Integer.toString(new Random().nextInt(10))
+ Integer.toString(new Random().nextInt(10))
);
}

private void sendMessage(String phoneNumber, String message) throws SecurityException {
Expand Down

0 comments on commit 8bc339f

Please sign in to comment.