add return value and call start function

Change-Id: I9991ef9e8a8aa14c4c621eec76c04f77bfad410e
pull/1493/head
Jaehwa Noh 1 year ago
parent 38f63e44ac
commit eaaaaa872d

@ -50,11 +50,13 @@ object ProfileVerifierLogger {
private const val TAG = "ProfileInstaller"
private var scope: CoroutineScope? = null
fun setScope(scope: CoroutineScope) {
fun setScope(scope: CoroutineScope): ProfileVerifierLogger {
this.scope = scope
this.start()
return this
}
fun start() = scope?.launch {
private fun start() = scope?.launch {
val status = ProfileVerifier.getCompilationStatusAsync().await()
Log.d(TAG, "Status code: ${status.profileInstallResultCode}")
Log.d(

Loading…
Cancel
Save