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

Commit ed13cde1 authored by Amith Yamasani's avatar Amith Yamasani
Browse files

Fix attribute parsing of PreferenceHeader_id

parent 0b7a3bc3
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -663,7 +663,7 @@ public abstract class PreferenceActivity extends ListActivity implements


                    TypedArray sa = getResources().obtainAttributes(attrs,
                    TypedArray sa = getResources().obtainAttributes(attrs,
                            com.android.internal.R.styleable.PreferenceHeader);
                            com.android.internal.R.styleable.PreferenceHeader);
                    header.id = sa.getInt(
                    header.id = sa.getResourceId(
                            com.android.internal.R.styleable.PreferenceHeader_id,
                            com.android.internal.R.styleable.PreferenceHeader_id,
                            (int)HEADER_ID_UNDEFINED);
                            (int)HEADER_ID_UNDEFINED);
                    header.title = sa.getText(
                    header.title = sa.getText(