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

Commit 2650af94 authored by Yuichi Araki's avatar Yuichi Araki Committed by Android (Google) Code Review
Browse files

Merge "Recycle TypedArrays in Fade and TransitionInflater"

parents df0b8da8 fb6ed353
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -103,6 +103,7 @@ public class Fade extends Visibility {
        TypedArray a = context.obtainStyledAttributes(attrs, R.styleable.Fade);
        int fadingMode = a.getInt(R.styleable.Fade_fadingMode, getMode());
        setMode(fadingMode);
        a.recycle();
    }

    @Override
+2 −0
Original line number Diff line number Diff line
@@ -276,9 +276,11 @@ public class TransitionInflater {
                            transition.addTarget(clazz);
                        }
                    } catch (ClassNotFoundException e) {
                        a.recycle();
                        throw new RuntimeException("Could not create " + className, e);
                    }
                }
                a.recycle();
            } else {
                throw new RuntimeException("Unknown scene name: " + parser.getName());
            }