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

Commit 6fc3edd3 authored by Gao Honghua's avatar Gao Honghua Committed by Jia Jia
Browse files

Fix resource leak caused by TypedArray type



Change-Id: If4a95fe7d3b7686c3189fae803c795bcf5accf24
Signed-off-by: default avatarJia Jia <jia.jia@zte.com.cn>
parent caeb150e
Loading
Loading
Loading
Loading
+7 −1
Original line number Original line Diff line number Diff line
@@ -87,7 +87,13 @@ public class AccessPointPreference extends Preference {
            // Fallback for platforms that do not need friction icon resources.
            // Fallback for platforms that do not need friction icon resources.
            frictionSld = null;
            frictionSld = null;
        }
        }
        return frictionSld != null ? (StateListDrawable) frictionSld.getDrawable(0) : null;
        if (frictionSld != null) {
            StateListDrawable val = (StateListDrawable) frictionSld.getDrawable(0);
            frictionSld.recycle();
            return val;
        } else {
            return null;
        }
    }
    }


    // Used for fake pref.
    // Used for fake pref.