Skip to content

Commit 39a7a77

Browse files
authored
Merge pull request #7 from bara96/development
Development
2 parents 4e215e9 + 337eaba commit 39a7a77

File tree

12 files changed

+6
-5
lines changed

12 files changed

+6
-5
lines changed

app/src/main/java/com/example/algorandcarsharing/activities/TripActivity.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -671,6 +671,7 @@ private void setTripViewMode(TripViewMode viewMode) {
671671
else {
672672
binding.status.setText(getString(R.string.status_full));
673673
binding.status.setTextColor(getColor(R.color.red));
674+
binding.sendBt.setEnabled(false);
674675
}
675676
break;
676677
default:

app/src/main/java/com/example/algorandcarsharing/fragments/trips/CreatedTripsFragment.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ protected <T> List<TripModel> searchApplications(List<T> applications) {
9696
LogHelper.error("searchApplications", e);
9797
}
9898
}
99-
validApplications.sort(new TripComparator());
99+
validApplications.sort(new TripComparator().reversed());
100100
return validApplications;
101101
}
102102
}

app/src/main/java/com/example/algorandcarsharing/fragments/trips/HomeFragment.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ protected <T> List<TripModel> searchApplications(List<T> transactions) {
116116
}
117117
}
118118
futureList.forEach(CompletableFuture::join);
119-
validApplications.sort(new TripComparator());
119+
validApplications.sort(new TripComparator().reversed());
120120
return validApplications;
121121
}
122122

app/src/main/java/com/example/algorandcarsharing/fragments/trips/JoinedTripsFragment.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ protected <T> List<TripModel> searchApplications(List<T> applications) {
110110
}
111111
}
112112
futureList.forEach(CompletableFuture::join);
113-
validApplications.sort(new TripComparator());
113+
validApplications.sort(new TripComparator().reversed());
114114
return validApplications;
115115
}
116116
}

app/src/main/java/com/example/algorandcarsharing/services/ApplicationService.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ public Supplier<Long> updateApplication(Long appId, Account creator, InsertTripM
140140
}
141141

142142
/**
143-
* Cancel the participation to the trip
143+
* Delete the application and close the escrow if needed
144144
*
145145
* @param trip
146146
* @param creator
@@ -326,7 +326,7 @@ public Supplier<Long> cancelParticipation(TripModel trip, AccountModel account)
326326
LogHelper.log(this.getClass().getName(), String.format("Opted-in to app-id: %s", appId));
327327
}
328328

329-
// participate to the trip and perform payment to escrow
329+
// cancel participation to the trip and perform refund
330330
List<byte[]> args = new ArrayList<>();
331331
args.add(ApplicationTripSchema.AppMethod.CancelParticipation.getValue().getBytes());
332332

screen_cast/app_overview.webm

1.71 MB
Binary file not shown.

screen_cast/trip_create.webm

828 KB
Binary file not shown.

screen_cast/trip_delete.webm

354 KB
Binary file not shown.

screen_cast/trip_join.webm

461 KB
Binary file not shown.

screen_cast/trip_leave.webm

444 KB
Binary file not shown.

screen_cast/trip_start.webm

531 KB
Binary file not shown.

screen_cast/trip_update.webm

977 KB
Binary file not shown.

0 commit comments

Comments
 (0)