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

Commit 51130277 authored by Chong Zhang's avatar Chong Zhang
Browse files

MediaTranscodeManager: delay getService

Remove getService from the constructor, delay
getting the service until it's used.

bug: 187425268
test: CTS MediaTranscodeManagerTest
Change-Id: I502bb428fcde96874a1af431af07413feea64d7a
parent b71cd0f5
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -430,10 +430,6 @@ public final class MediaTranscodeManager {
        mUid = Os.getuid();
        mPid = Os.getpid();
        mIsLowRamDevice = mContext.getSystemService(ActivityManager.class).isLowRamDevice();
        IMediaTranscodingService service = getService(false /*retry*/);
        if (service != null) {
            mTranscodingClient = registerClient(service);
        }
    }

    /**