Compare commits
1 commit
038d924a99
...
9cd866f464
Author | SHA1 | Date | |
---|---|---|---|
9cd866f464 |
1 changed files with 9 additions and 8 deletions
|
@ -2,7 +2,8 @@ package net.typeblog.lpac_jni
|
||||||
|
|
||||||
interface ProfileDownloadCallback {
|
interface ProfileDownloadCallback {
|
||||||
companion object {
|
companion object {
|
||||||
fun lookupStateFromProgress(progress: Int): DownloadState = when (progress) {
|
fun lookupStateFromProgress(progress: Int): DownloadState =
|
||||||
|
when (progress) {
|
||||||
0 -> DownloadState.Preparing
|
0 -> DownloadState.Preparing
|
||||||
20 -> DownloadState.Connecting
|
20 -> DownloadState.Connecting
|
||||||
40 -> DownloadState.Authenticating
|
40 -> DownloadState.Authenticating
|
||||||
|
|
Loading…
Add table
Reference in a new issue