Merge "Revert "Fix incompatibilities with Kotlin 1.5.0"" am: f1e2bb9a81 am: c2db9c85cc

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1705633

Change-Id: I39fdc7fb9ad8109e51e2d3bdee1bc4fb3354a247