MediaTranscodeManager: delay getService

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

bug: 187425268
test: CTS MediaTranscodeManagerTest
Change-Id: I502bb428fcde96874a1af431af07413feea64d7a
This commit is contained in:
Chong Zhang
2021-05-06 14:17:18 -07:00
parent b71cd0f51e
commit 5113027706

View File

@@ -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);
}
}
/**