Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ object SnackbarNotificationManager {
.setSmallIcon(R.drawable.ic_launcher_foreground)
.setContentTitle("You order is being placed")
.setContentText("Confirming with bakery...")
.setShortCriticalText("Placing")
.setStyle(buildBaseProgressStyle(INITIALIZING).setProgressIndeterminate(true))
}
},
Expand All @@ -64,6 +65,7 @@ object SnackbarNotificationManager {
return buildBaseNotification(appContext, FOOD_PREPARATION)
.setContentTitle("Your order is being prepared")
.setContentText("Next step will be delivery")
.setShortCriticalText("Prepping")
.setLargeIcon(
IconCompat.createWithResource(
appContext, R.drawable.cupcake
Expand Down Expand Up @@ -92,6 +94,9 @@ object SnackbarNotificationManager {
appContext, R.drawable.cupcake
).toIcon(appContext)
)
.setWhen(System.currentTimeMillis().plus(11 * 60 * 1000 /* 10 min */))
.setUsesChronometer(true)
.setChronometerCountDown(true)
}
},
FOOD_ARRIVING(18000) {
Expand All @@ -114,6 +119,9 @@ object SnackbarNotificationManager {
appContext, R.drawable.cupcake
).toIcon(appContext)
)
.setWhen(System.currentTimeMillis().plus(11 * 60 * 500 /* 5 min */))
.setUsesChronometer(true)
.setChronometerCountDown(true)
}
},
ORDER_COMPLETE(21000) {
Expand All @@ -131,6 +139,7 @@ object SnackbarNotificationManager {
)
.setProgress(100)
)
.setShortCriticalText("Arrived")
.setLargeIcon(
IconCompat.createWithResource(
appContext, R.drawable.cupcake
Expand Down
Loading