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

Commit bbd3882c authored by Songyue Han's avatar Songyue Han Committed by Gerrit Code Review
Browse files

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

parents d8664159 4d96f0e7
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() {