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

Commit f8f1d3a0 authored by Jacky Wang's avatar Jacky Wang
Browse files

[Catalyst] Default android:persistent to false for some widgets

Simplify XML and reduce the effort on catalyst migration test.

Bug: 417933976
Flag: EXEMPT library
Test: atest
Change-Id: I8d79bc0fb3de1c936ce4fd0d77437030fcc5ee20
parent 2a96c7d0
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -218,6 +218,7 @@ public class FooterPreference extends Preference
            setKey(KEY_FOOTER);
        }
        setSelectable(false);
        setPersistent(false);
    }

    /** The builder is convenient to creat a dynamic FooterPreference. */
+1 −0
Original line number Diff line number Diff line
@@ -595,5 +595,6 @@ public class IllustrationPreference extends Preference implements GroupSectionDi
            setMaxHeight(context.getResources().getDimensionPixelSize(
                    R.dimen.settingslib_illustration_height_tablet));
        }
        setPersistent(false);
    }
}
+1 −0
Original line number Diff line number Diff line
@@ -46,6 +46,7 @@ constructor(
        initAttributes(context, attrs, defStyleAttr)

        isSelectable = false
        isPersistent = false
    }

    private fun initAttributes(context: Context, attrs: AttributeSet?, defStyleAttr: Int) {