diff options
| -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)) { |