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

Commit 14e84b84 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Fix resource leak caused by TypedArray type"

parents c9f5acd1 6fc3edd3
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -87,7 +87,13 @@ public class AccessPointPreference extends Preference {
            // Fallback for platforms that do not need friction icon resources.
            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.