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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user