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

Commit a2648e13 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Fix resource leak caused by TypedArray type" am: 14e84b84

parents bf7011df 14e84b84
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.