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

Commit c7ba97f2 authored by Songyue Han's avatar Songyue Han Committed by Automerger Merge Worker
Browse files

Merge "CodecCapabilities: Fix validFeatures()." into main am: bbd3882c

parents 918dc4e7 bbd3882c
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -907,13 +907,13 @@ public final class MediaCodecInfo {
        /** @hide */
        public String[] validFeatures() {
            Feature[] features = getValidFeatures();
            String[] res = new String[features.length];
            for (int i = 0; i < res.length; i++) {
            ArrayList<String> res = new ArrayList();
            for (int i = 0; i < features.length; i++) {
                if (!features[i].mInternal) {
                    res[i] = features[i].mName;
                    res.add(features[i].mName);
                }
            }
            return res;
            return res.toArray(new String[0]);
        }

        private Feature[] getValidFeatures() {