Skip to content

Commit

Permalink
fix:AA Adjust connect icon state based on workflow status
Browse files Browse the repository at this point in the history
  • Loading branch information
tzebrowski committed Jul 14, 2024
1 parent 50b9f07 commit 0f8c0bd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ internal abstract class CarScreen(
): ActionStrip {
var builder = ActionStrip.Builder()

builder = if (dataLogger.isRunning()) {
builder = if (dataLogger.status() == WorkflowStatus.Connecting || dataLogger.status() == WorkflowStatus.Connected) {
builder.addAction(createAction(carContext, R.drawable.action_disconnect, mapColor(settings.getColorTheme().actionsBtnDisconnectColor)) {
stopDataLogging()
toast.show(carContext, R.string.toast_connection_disconnect)
Expand Down

0 comments on commit 0f8c0bd

Please sign in to comment.