From 5b321f0d403996f31b1d101bc24e582d8c0cb631 Mon Sep 17 00:00:00 2001 From: Bryson Steck Date: Tue, 9 May 2023 21:59:26 -0600 Subject: dialog working, download files working --- app/src/main/kotlin/xyz/brysonsteck/serverfordummies/Download.kt | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'app/src/main/kotlin/xyz/brysonsteck/serverfordummies/Download.kt') diff --git a/app/src/main/kotlin/xyz/brysonsteck/serverfordummies/Download.kt b/app/src/main/kotlin/xyz/brysonsteck/serverfordummies/Download.kt index da61f75..07a6eca 100644 --- a/app/src/main/kotlin/xyz/brysonsteck/serverfordummies/Download.kt +++ b/app/src/main/kotlin/xyz/brysonsteck/serverfordummies/Download.kt @@ -9,11 +9,11 @@ class Download: Runnable { public var size: Int public var downloaded: Int public var contentLength: Int + public var status: Status private final val MAX_BUFFER_SIZE: Number = 1024 private var url: URL - private var status: Status constructor (url: URL) { this.url = url @@ -23,10 +23,6 @@ class Download: Runnable { contentLength = 1 } - public fun status(): Status { - return status - } - public fun start() { val thread = Thread(this) thread.start() -- cgit v1.2.3