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

Commit d0e047dd authored by Erik Wolsheimer's avatar Erik Wolsheimer
Browse files

Match semantics of ArrayList#toArray in Config's use thereof

BUG: 28706561
Change-Id: Ia8b5a126ab742f02cf2e1f83294d8488b133a822
parent c8ce398f
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -101,9 +101,7 @@ public class Config {
                profiles.add(PROFILE_SERVICES[i]);
            }
        }
        int totalProfiles = profiles.size();
        SUPPORTED_PROFILES = new Class[totalProfiles];
        profiles.toArray(SUPPORTED_PROFILES);
        SUPPORTED_PROFILES = profiles.toArray(new Class[profiles.size()]);
    }

    static Class[]  getSupportedProfiles() {