fix: ktlint wrapping violations on toast message and intent builder
This commit is contained in:
1 parent
37fc9d9f17
commit
ab92b31d2e
2 files changed
+12
-6
No files matched your search
@@ -153,11 +153,12 @@ class ChatNotificationService : Service() {
|
||||
}
|
||||
|
||||
private fun buildContentIntent(sessionId: String?): PendingIntent {
|
||||
val intent = Intent(this, MainActivity::class.java).apply {
|
||||
flags = Intent.FLAG_ACTIVITY_NEW_TASK or Intent.FLAG_ACTIVITY_CLEAR_TOP
|
||||
if (!sessionId.isNullOrBlank()) {
|
||||
putExtra(NotificationReplyReceiver.EXTRA_SESSION_ID, sessionId)
|
||||
}
|
||||
val intent = Intent(this, MainActivity::class.java)
|
||||
.apply {
|
||||
flags = Intent.FLAG_ACTIVITY_NEW_TASK or Intent.FLAG_ACTIVITY_CLEAR_TOP
|
||||
if (!sessionId.isNullOrBlank()) {
|
||||
putExtra(NotificationReplyReceiver.EXTRA_SESSION_ID, sessionId)
|
||||
}
|
||||
}
|
||||
return PendingIntent.getActivity(
|
||||
this,
|
||||
|
||||
@@ -62,7 +62,12 @@ class ChannelsViewModel : ViewModel() {
|
||||
}
|
||||
when (result) {
|
||||
is NetworkResult.Success -> {
|
||||
_uiState.update { it.copy(isLoading = false, toastMessage = "$platformId configured successfully — restart the gateway for changes to take effect") }
|
||||
_uiState.update {
|
||||
it.copy(
|
||||
isLoading = false,
|
||||
toastMessage = "$platformId configured successfully — restart the gateway for changes to take effect",
|
||||
)
|
||||
}
|
||||
loadPlatforms()
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user