Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 10c09e60 authored by Colin Cross's avatar Colin Cross
Browse files

Fixes more @Nullable issues in System UI and WMShell.

Test: builds
Fix: 294098415
Change-Id: Ibd2b0163b47571da5f276f09ce5dcfd875f09a1c
parent f080d0cc
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -52,7 +52,7 @@ class CredentialPasswordView(context: Context, attrs: AttributeSet?) :
                    titleView.ellipsize = TextUtils.TruncateAt.MARQUEE
                    titleView.marqueeRepeatLimit = -1
                    // select to enable marquee unless a screen reader is enabled
                    titleView.isSelected = accessibilityManager.shouldMarquee()
                    titleView.isSelected = accessibilityManager?.shouldMarquee() ?: false
                } else {
                    titleView.isSingleLine = false
                    titleView.ellipsize = null
+3 −3
Original line number Diff line number Diff line
@@ -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)) {