Merge pull request #6126 from vector-im/task/eric/when-arrow-alignment
Code Style Change - Disable when arrow alignment
This commit is contained in:
commit
928183ff64
@ -764,7 +764,7 @@ ij_groovy_while_on_new_line = false
|
|||||||
ij_groovy_wrap_long_lines = false
|
ij_groovy_wrap_long_lines = false
|
||||||
|
|
||||||
[{*.gradle.kts,*.kt,*.kts,*.main.kts}]
|
[{*.gradle.kts,*.kt,*.kts,*.main.kts}]
|
||||||
ij_kotlin_align_in_columns_case_branch = true
|
ij_kotlin_align_in_columns_case_branch = false
|
||||||
ij_kotlin_align_multiline_binary_operation = false
|
ij_kotlin_align_multiline_binary_operation = false
|
||||||
ij_kotlin_align_multiline_extends_list = false
|
ij_kotlin_align_multiline_extends_list = false
|
||||||
ij_kotlin_align_multiline_method_parentheses = false
|
ij_kotlin_align_multiline_method_parentheses = false
|
||||||
|
1
changelog.d/6126.misc
Normal file
1
changelog.d/6126.misc
Normal file
@ -0,0 +1 @@
|
|||||||
|
Disables when arrow alignment in code style
|
@ -33,8 +33,10 @@ internal fun LiveLocationShareAggregatedSummaryEntity.Companion.where(
|
|||||||
.equalTo(LiveLocationShareAggregatedSummaryEntityFields.EVENT_ID, eventId)
|
.equalTo(LiveLocationShareAggregatedSummaryEntityFields.EVENT_ID, eventId)
|
||||||
}
|
}
|
||||||
|
|
||||||
internal fun LiveLocationShareAggregatedSummaryEntity.Companion.whereRoomId(realm: Realm,
|
internal fun LiveLocationShareAggregatedSummaryEntity.Companion.whereRoomId(
|
||||||
roomId: String): RealmQuery<LiveLocationShareAggregatedSummaryEntity> {
|
realm: Realm,
|
||||||
|
roomId: String
|
||||||
|
): RealmQuery<LiveLocationShareAggregatedSummaryEntity> {
|
||||||
return realm.where<LiveLocationShareAggregatedSummaryEntity>()
|
return realm.where<LiveLocationShareAggregatedSummaryEntity>()
|
||||||
.equalTo(LiveLocationShareAggregatedSummaryEntityFields.ROOM_ID, roomId)
|
.equalTo(LiveLocationShareAggregatedSummaryEntityFields.ROOM_ID, roomId)
|
||||||
}
|
}
|
||||||
|
@ -494,8 +494,10 @@ internal class TimelineChunk(
|
|||||||
val firstInsertion = results[range.startIndex]!!
|
val firstInsertion = results[range.startIndex]!!
|
||||||
val lastBeforeInsertion = builtEvents[range.startIndex - 1]
|
val lastBeforeInsertion = builtEvents[range.startIndex - 1]
|
||||||
if (firstInsertion.displayIndex + 1 != lastBeforeInsertion.displayIndex) {
|
if (firstInsertion.displayIndex + 1 != lastBeforeInsertion.displayIndex) {
|
||||||
Timber.i("handleDatabaseChangeSet: skip insertion at ${range.startIndex}/${builtEvents.size}, " +
|
Timber.i(
|
||||||
"displayIndex mismatch at ${range.startIndex}: ${firstInsertion.displayIndex} -> ${lastBeforeInsertion.displayIndex}")
|
"handleDatabaseChangeSet: skip insertion at ${range.startIndex}/${builtEvents.size}, " +
|
||||||
|
"displayIndex mismatch at ${range.startIndex}: ${firstInsertion.displayIndex} -> ${lastBeforeInsertion.displayIndex}"
|
||||||
|
)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -504,9 +506,11 @@ internal class TimelineChunk(
|
|||||||
val lastInsertion = results[range.startIndex + range.length - 1]!!
|
val lastInsertion = results[range.startIndex + range.length - 1]!!
|
||||||
val firstAfterInsertion = builtEvents[range.startIndex]
|
val firstAfterInsertion = builtEvents[range.startIndex]
|
||||||
if (firstAfterInsertion.displayIndex + 1 != lastInsertion.displayIndex) {
|
if (firstAfterInsertion.displayIndex + 1 != lastInsertion.displayIndex) {
|
||||||
Timber.i("handleDatabaseChangeSet: skip insertion at ${range.startIndex}/${builtEvents.size}, " +
|
Timber.i(
|
||||||
|
"handleDatabaseChangeSet: skip insertion at ${range.startIndex}/${builtEvents.size}, " +
|
||||||
"displayIndex mismatch at ${range.startIndex + range.length}: " +
|
"displayIndex mismatch at ${range.startIndex + range.length}: " +
|
||||||
"${firstAfterInsertion.displayIndex} -> ${lastInsertion.displayIndex}")
|
"${firstAfterInsertion.displayIndex} -> ${lastInsertion.displayIndex}"
|
||||||
|
)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -38,7 +38,8 @@ class WebviewPermissionUtilsTest {
|
|||||||
fun filterPermissionsToBeGranted_selectedAndGrantedNothing() {
|
fun filterPermissionsToBeGranted_selectedAndGrantedNothing() {
|
||||||
val permissions = utils.filterPermissionsToBeGranted(
|
val permissions = utils.filterPermissionsToBeGranted(
|
||||||
selectedWebPermissions = listOf(),
|
selectedWebPermissions = listOf(),
|
||||||
androidPermissionResult = mapOf())
|
androidPermissionResult = mapOf()
|
||||||
|
)
|
||||||
permissions shouldBeEqualTo listOf()
|
permissions shouldBeEqualTo listOf()
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -46,7 +47,8 @@ class WebviewPermissionUtilsTest {
|
|||||||
fun filterPermissionsToBeGranted_selectedNothingGrantedCamera() {
|
fun filterPermissionsToBeGranted_selectedNothingGrantedCamera() {
|
||||||
val permissions = utils.filterPermissionsToBeGranted(
|
val permissions = utils.filterPermissionsToBeGranted(
|
||||||
selectedWebPermissions = listOf(),
|
selectedWebPermissions = listOf(),
|
||||||
androidPermissionResult = mapOf(Manifest.permission.CAMERA to true))
|
androidPermissionResult = mapOf(Manifest.permission.CAMERA to true)
|
||||||
|
)
|
||||||
permissions shouldBeEqualTo listOf()
|
permissions shouldBeEqualTo listOf()
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -54,7 +56,8 @@ class WebviewPermissionUtilsTest {
|
|||||||
fun filterPermissionsToBeGranted_selectedAndPreviouslyGrantedCamera() {
|
fun filterPermissionsToBeGranted_selectedAndPreviouslyGrantedCamera() {
|
||||||
val permissions = utils.filterPermissionsToBeGranted(
|
val permissions = utils.filterPermissionsToBeGranted(
|
||||||
selectedWebPermissions = listOf(PermissionRequest.RESOURCE_VIDEO_CAPTURE),
|
selectedWebPermissions = listOf(PermissionRequest.RESOURCE_VIDEO_CAPTURE),
|
||||||
androidPermissionResult = mapOf())
|
androidPermissionResult = mapOf()
|
||||||
|
)
|
||||||
permissions shouldBeEqualTo listOf(PermissionRequest.RESOURCE_VIDEO_CAPTURE)
|
permissions shouldBeEqualTo listOf(PermissionRequest.RESOURCE_VIDEO_CAPTURE)
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -62,7 +65,8 @@ class WebviewPermissionUtilsTest {
|
|||||||
fun filterPermissionsToBeGranted_selectedAndGrantedCamera() {
|
fun filterPermissionsToBeGranted_selectedAndGrantedCamera() {
|
||||||
val permissions = utils.filterPermissionsToBeGranted(
|
val permissions = utils.filterPermissionsToBeGranted(
|
||||||
selectedWebPermissions = listOf(PermissionRequest.RESOURCE_VIDEO_CAPTURE),
|
selectedWebPermissions = listOf(PermissionRequest.RESOURCE_VIDEO_CAPTURE),
|
||||||
androidPermissionResult = mapOf(Manifest.permission.CAMERA to true))
|
androidPermissionResult = mapOf(Manifest.permission.CAMERA to true)
|
||||||
|
)
|
||||||
permissions shouldBeEqualTo listOf(PermissionRequest.RESOURCE_VIDEO_CAPTURE)
|
permissions shouldBeEqualTo listOf(PermissionRequest.RESOURCE_VIDEO_CAPTURE)
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -70,7 +74,8 @@ class WebviewPermissionUtilsTest {
|
|||||||
fun filterPermissionsToBeGranted_selectedAndDeniedCamera() {
|
fun filterPermissionsToBeGranted_selectedAndDeniedCamera() {
|
||||||
val permissions = utils.filterPermissionsToBeGranted(
|
val permissions = utils.filterPermissionsToBeGranted(
|
||||||
selectedWebPermissions = listOf(PermissionRequest.RESOURCE_VIDEO_CAPTURE),
|
selectedWebPermissions = listOf(PermissionRequest.RESOURCE_VIDEO_CAPTURE),
|
||||||
androidPermissionResult = mapOf(Manifest.permission.CAMERA to false))
|
androidPermissionResult = mapOf(Manifest.permission.CAMERA to false)
|
||||||
|
)
|
||||||
permissions shouldBeEqualTo listOf()
|
permissions shouldBeEqualTo listOf()
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -78,7 +83,8 @@ class WebviewPermissionUtilsTest {
|
|||||||
fun filterPermissionsToBeGranted_selectedProtectedMediaGrantedNothing() {
|
fun filterPermissionsToBeGranted_selectedProtectedMediaGrantedNothing() {
|
||||||
val permissions = utils.filterPermissionsToBeGranted(
|
val permissions = utils.filterPermissionsToBeGranted(
|
||||||
selectedWebPermissions = listOf(PermissionRequest.RESOURCE_PROTECTED_MEDIA_ID),
|
selectedWebPermissions = listOf(PermissionRequest.RESOURCE_PROTECTED_MEDIA_ID),
|
||||||
androidPermissionResult = mapOf(Manifest.permission.CAMERA to false))
|
androidPermissionResult = mapOf(Manifest.permission.CAMERA to false)
|
||||||
|
)
|
||||||
permissions shouldBeEqualTo listOf(PermissionRequest.RESOURCE_PROTECTED_MEDIA_ID)
|
permissions shouldBeEqualTo listOf(PermissionRequest.RESOURCE_PROTECTED_MEDIA_ID)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user