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

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

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

parents d096f4ce c7ba97f2
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -908,13 +908,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() {