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

Commit 2b4f24a8 authored by Sunny Shao's avatar Sunny Shao
Browse files

Update FooterPreference

Display user specified icon if android:icon has value, otherwise shows default.

Fixes: 138965988
Test: manual test
Change-Id: I78771103e52bd2b10aeae312d354fce27ec436fb
parent 535bb718
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -72,7 +72,9 @@ public class FooterPreference extends Preference {
    }

    private void init() {
        if (getIcon() == null) {
            setIcon(R.drawable.ic_info_outline_24);
        }
        setOrder(ORDER_FOOTER);
        if (TextUtils.isEmpty(getKey())) {
            setKey(KEY_FOOTER);