commit | 8f7a1e6f53050b86e5a55f20963a884b3f1fd500 | [log] [tgz] |
---|---|---|
author | Colin Cross <ccross@android.com> | Mon Aug 14 12:29:02 2023 -0700 |
committer | Colin Cross <ccross@android.com> | Thu Sep 07 17:11:11 2023 +0000 |
tree | d96f03ddeac3d838f737d7f010994ab0b7520b8e | |
parent | 21a77533a7386107f94c577cdf2df7f8bb00ccbe [diff] |
Fix kotlin nullable errors in Settings Fix kotlin nullable errors that were exposed by setting the retention of android.annotation.NonNull and android.annotation.Nullable to class retention. Bug: 294110802 Test: builds Change-Id: I6aa0516fa4f6443b6d4dff873baf3b08ff9189f0 Merged-In: I6aa0516fa4f6443b6d4dff873baf3b08ff9189f0 (cherry picked from commit 84f8961e67d073bea2a1c146a219ff56fbfcf4fd)
diff --git a/src/com/android/settings/RegulatoryInfoDisplayActivity.kt b/src/com/android/settings/RegulatoryInfoDisplayActivity.kt index ffacb9c..fdf66c3 100644 --- a/src/com/android/settings/RegulatoryInfoDisplayActivity.kt +++ b/src/com/android/settings/RegulatoryInfoDisplayActivity.kt
@@ -46,7 +46,7 @@ getRegulatoryInfo()?.let { val view = layoutInflater.inflate(R.layout.regulatory_info, null) - val image = view.findViewById<ImageView>(R.id.regulatoryInfo) + val image = view.requireViewById<ImageView>(R.id.regulatoryInfo) image.setImageDrawable(it) builder.setView(view) builder.show()