mirror of
https://github.com/MinimalBible/MinimalBible
synced 2025-07-05 07:44:43 -04:00
Refactor the DLProgressEvent to Kotlin
This commit is contained in:
@ -0,0 +1,16 @@
|
||||
package org.bspeice.minimalbible.activity.downloader.manager
|
||||
|
||||
import org.crosswire.jsword.book.Book
|
||||
|
||||
/**
|
||||
* Created by bspeice on 11/11/14.
|
||||
*/
|
||||
|
||||
class DLProgressEvent(val progress: Int, val b: Book) {
|
||||
class object {
|
||||
val PROGRESS_COMPLETE = 100
|
||||
val PROGRESS_BEGINNING = 0
|
||||
}
|
||||
|
||||
fun toCircular() = progress.toFloat() * 360 / 100
|
||||
}
|
Reference in New Issue
Block a user