Skip to content

Commit a65bf06

Browse files
committed
Fix build -.-
1 parent 67db219 commit a65bf06

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

presentation/src/main/java/org/cryptomator/presentation/presenter/LicenseKeyValidator.kt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ import org.cryptomator.util.SharedPreferencesHandler
1010
internal class LicenseKeyValidator(
1111
private val doLicenseCheckUseCase: DoLicenseCheckUseCase,
1212
private val sharedPreferencesHandler: SharedPreferencesHandler,
13-
private val getView: () -> LicenseView?
13+
private val getView: () -> LicenseView?,
14+
private val onError: (Throwable) -> Unit
1415
) {
1516
fun validate(data: Uri?, onLicenseExtracted: ((String) -> Unit)? = null) {
1617
data?.let {
@@ -37,7 +38,7 @@ internal class LicenseKeyValidator(
3738

3839
override fun onError(t: Throwable) {
3940
super.onError(t)
40-
onError(t)
41+
this@LicenseKeyValidator.onError(t)
4142
}
4243
}
4344
}

0 commit comments

Comments
 (0)