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 {
|
private fun buildContentIntent(sessionId: String?): PendingIntent {
|
||||||
val intent = Intent(this, MainActivity::class.java).apply {
|
val intent = Intent(this, MainActivity::class.java)
|
||||||
flags = Intent.FLAG_ACTIVITY_NEW_TASK or Intent.FLAG_ACTIVITY_CLEAR_TOP
|
.apply {
|
||||||
if (!sessionId.isNullOrBlank()) {
|
flags = Intent.FLAG_ACTIVITY_NEW_TASK or Intent.FLAG_ACTIVITY_CLEAR_TOP
|
||||||
putExtra(NotificationReplyReceiver.EXTRA_SESSION_ID, sessionId)
|
if (!sessionId.isNullOrBlank()) {
|
||||||
}
|
putExtra(NotificationReplyReceiver.EXTRA_SESSION_ID, sessionId)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return PendingIntent.getActivity(
|
return PendingIntent.getActivity(
|
||||||
this,
|
this,
|
||||||
|
|||||||
@@ -62,7 +62,12 @@ class ChannelsViewModel : ViewModel() {
|
|||||||
}
|
}
|
||||||
when (result) {
|
when (result) {
|
||||||
is NetworkResult.Success -> {
|
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()
|
loadPlatforms()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user