Add a comment to record the reason for restoring licenses before releasing

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=157204373
This commit is contained in:
eguven 2017-05-26 03:03:48 -07:00 committed by Oliver Woodman
parent 3daa7a084f
commit 5092efe301

View File

@ -513,6 +513,8 @@ public class DefaultDrmSessionManager<T extends ExoMediaCrypto> implements DrmSe
}
break;
case MODE_RELEASE:
// It's not necessary to restore the key (and open a session to do that) before releasing it
// but this serves as a good sanity/fast-failure check.
if (restoreKeys()) {
postKeyRequest(offlineLicenseKeySetId, MediaDrm.KEY_TYPE_RELEASE);
}