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

Commit e4b731af authored by David Su's avatar David Su
Browse files

SoftApConfiguration#getChannels(): return clone

Return clone so that clients cannot modify the
internal SparseIntArray.

Bug: 162686273
Test: atest FrameworksWifiApiTests
Change-Id: I2ac1bb44ca7a7848557ed73244342c4fb3274170
parent 24e5b93c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -538,7 +538,7 @@ public final class SoftApConfiguration implements Parcelable {
        if (!SdkLevel.isAtLeastS()) {
            throw new UnsupportedOperationException();
        }
        return mChannels;
        return mChannels.clone();
    }

    /**