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

Commit dae12c16 authored by David Liu's avatar David Liu Committed by Android (Google) Code Review
Browse files

Merge "Fix crash in SettingsSpinnerAdapter" into main

parents 4285394b 075cf4e4
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -76,8 +76,8 @@ public class SettingsSpinnerAdapter<T> extends ArrayAdapter<T> {
        if (iconView != null) {
            iconView.setVisibility((position == mSelectedPosition) ? View.VISIBLE : View.GONE);
        }
        String item = (String) getItem(position);
        textView.setText(item);
        T item = getItem(position);
        textView.setText(item == null ? "" : item.toString());
        return view;
    }