Commit bbe8c258 by aquilescanta Committed by Oliver Woodman

Make minor simplifications in DefaultDrmSession

PiperOrigin-RevId: 268422418
parent 07066250
......@@ -367,13 +367,8 @@ public class DefaultDrmSession<T extends ExoMediaCrypto> implements DrmSession<T
}
break;
case DefaultDrmSessionManager.MODE_DOWNLOAD:
if (offlineLicenseKeySetId == null) {
if (offlineLicenseKeySetId == null || restoreKeys()) {
postKeyRequest(sessionId, ExoMediaDrm.KEY_TYPE_OFFLINE, allowRetry);
} else {
// Renew
if (restoreKeys()) {
postKeyRequest(sessionId, ExoMediaDrm.KEY_TYPE_OFFLINE, allowRetry);
}
}
break;
case DefaultDrmSessionManager.MODE_RELEASE:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment