diff options
| author | 2023-08-11 14:46:37 -0700 | |
|---|---|---|
| committer | 2023-08-29 16:06:03 +0000 | |
| commit | d4e65759482bef3b98c72abb4d28f203a32237f7 (patch) | |
| tree | 56234feb9b47ba36adc68c2de3280b9db671b546 | |
| parent | 9ee08dd69319463c3de0946f3ca9744fd6346445 (diff) | |
Fixes more @Nullable issues in System UI and WMShell.
Test: builds
Fix: 294098415
Change-Id: Ibd2b0163b47571da5f276f09ce5dcfd875f09a1c
Merged-In: Ibd2b0163b47571da5f276f09ce5dcfd875f09a1c
(cherry picked from commit 10c09e60e58df9ddb8e2ebce7537cb6f5142456c)
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/screenrecord/BaseScreenSharePermissionDialog.kt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/screenrecord/BaseScreenSharePermissionDialog.kt b/packages/SystemUI/src/com/android/systemui/screenrecord/BaseScreenSharePermissionDialog.kt index 7859fa0b1d87..8dd25bc78746 100644 --- a/packages/SystemUI/src/com/android/systemui/screenrecord/BaseScreenSharePermissionDialog.kt +++ b/packages/SystemUI/src/com/android/systemui/screenrecord/BaseScreenSharePermissionDialog.kt @@ -121,7 +121,7 @@ open class BaseScreenSharePermissionDialog( private fun createOptionsView(@LayoutRes layoutId: Int?) { if (layoutId == null) return - val stub = findViewById<View>(R.id.options_stub) as ViewStub + val stub = requireViewById<View>(R.id.options_stub) as ViewStub stub.layoutResource = layoutId stub.inflate() } @@ -144,8 +144,8 @@ private class OptionsAdapter( override fun getDropDownView(position: Int, convertView: View?, parent: ViewGroup): View { val inflater = LayoutInflater.from(parent.context) val view = inflater.inflate(R.layout.screen_share_dialog_spinner_item_text, parent, false) - val titleTextView = view.findViewById<TextView>(android.R.id.text1) - val errorTextView = view.findViewById<TextView>(android.R.id.text2) + val titleTextView = view.requireViewById<TextView>(android.R.id.text1) + val errorTextView = view.requireViewById<TextView>(android.R.id.text2) titleTextView.text = getItem(position) errorTextView.text = options[position].spinnerDisabledText if (isEnabled(position)) { |