Updated on 2026-08-14
This commit is contained in:
parent
30fbc7a45a
commit
0f2b4464ef
1 changed files with 6 additions and 9 deletions
|
|
@ -450,10 +450,14 @@ internal class StateBuilder(
|
||||||
iconResId = R.drawable.ic_alert_circle_24,
|
iconResId = R.drawable.ic_alert_circle_24,
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
is DataError.UnknownError -> SwapWarning.GeneralWarning(
|
else -> SwapWarning.GeneralWarning(
|
||||||
notificationConfig = NotificationConfig(
|
notificationConfig = NotificationConfig(
|
||||||
title = resourceReference(R.string.common_error),
|
title = resourceReference(R.string.common_error),
|
||||||
subtitle = resourceReference(R.string.swapping_generic_error),
|
subtitle = if (dataError.code == DataError.UnknownError.code){
|
||||||
|
resourceReference(R.string.swapping_generic_error)
|
||||||
|
} else {
|
||||||
|
resourceReference(R.string.generic_error_code, wrappedList(dataError.code.toString()))
|
||||||
|
},
|
||||||
iconResId = R.drawable.img_attention_20,
|
iconResId = R.drawable.img_attention_20,
|
||||||
buttonsState = NotificationConfig.ButtonsState.SecondaryButtonConfig(
|
buttonsState = NotificationConfig.ButtonsState.SecondaryButtonConfig(
|
||||||
text = resourceReference(R.string.warning_button_refresh),
|
text = resourceReference(R.string.warning_button_refresh),
|
||||||
|
|
@ -461,13 +465,6 @@ internal class StateBuilder(
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
else -> SwapWarning.GeneralWarning(
|
|
||||||
notificationConfig = NotificationConfig(
|
|
||||||
title = resourceReference(R.string.common_error),
|
|
||||||
subtitle = resourceReference(R.string.generic_error_code, wrappedList(dataError.code.toString())),
|
|
||||||
iconResId = R.drawable.img_attention_20,
|
|
||||||
),
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue