Merge "Fix more kotlin 1.7.0 errors" am: 78ef274d1b
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2174648 Change-Id: I462db357e1fc22fec4e60d5edcfaab0e1bcf0ec2 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -305,7 +305,7 @@ class MediaResumeListenerTest : SysuiTestCase() {
|
||||
// Then we save an update with the current time
|
||||
verify(sharedPrefsEditor).putString(any(), (capture(componentCaptor)))
|
||||
componentCaptor.value.split(ResumeMediaBrowser.DELIMITER.toRegex())
|
||||
?.dropLastWhile { it.isEmpty() }.forEach {
|
||||
.dropLastWhile { it.isEmpty() }.forEach {
|
||||
val result = it.split("/")
|
||||
assertThat(result.size).isEqualTo(3)
|
||||
assertThat(result[2].toLong()).isEqualTo(currentTime)
|
||||
@@ -392,7 +392,7 @@ class MediaResumeListenerTest : SysuiTestCase() {
|
||||
// Then we store the new lastPlayed time
|
||||
verify(sharedPrefsEditor).putString(any(), (capture(componentCaptor)))
|
||||
componentCaptor.value.split(ResumeMediaBrowser.DELIMITER.toRegex())
|
||||
?.dropLastWhile { it.isEmpty() }.forEach {
|
||||
.dropLastWhile { it.isEmpty() }.forEach {
|
||||
val result = it.split("/")
|
||||
assertThat(result.size).isEqualTo(3)
|
||||
assertThat(result[2].toLong()).isEqualTo(currentTime)
|
||||
|
||||
@@ -628,6 +628,7 @@ class SystemStubMultiUserDisableUninstallTest : BaseHostJUnit4Test() {
|
||||
CodePath.SAME, CodePath.DIFFERENT ->
|
||||
throw AssertionError("secondDataPath cannot be a data path")
|
||||
CodePath.SYSTEM -> assertThat(codePaths[1]).isEqualTo(stubFile.parent.toString())
|
||||
else -> {}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -149,6 +149,7 @@ private val ClassFieldInfo.allClassFields: List<ClassFieldInfo>
|
||||
when (field) {
|
||||
is ClassFieldInfo -> this += field.allClassFields
|
||||
is ListFieldInfo -> this += field.element.allClassFields
|
||||
else -> {}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user