migrate IOUtils to Kotlin (#2763)

* migrate `IOUtils` to Kotlin

* Fix ktlint

* change functions inside IOUtils to extension function
This commit is contained in:
Abrar Wiryawan 2022-11-08 02:10:06 +07:00 committed by GitHub
commit c0a06f7188
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 77 additions and 81 deletions

View file

@ -20,7 +20,7 @@ import android.util.Log
import android.widget.TextView
import androidx.annotation.RawRes
import com.keylesspalace.tusky.databinding.ActivityLicenseBinding
import com.keylesspalace.tusky.util.IOUtils
import com.keylesspalace.tusky.util.closeQuietly
import java.io.BufferedReader
import java.io.IOException
import java.io.InputStreamReader
@ -60,7 +60,7 @@ class LicenseActivity : BaseActivity() {
Log.w("LicenseActivity", e)
}
IOUtils.closeQuietly(br)
br.closeQuietly()
textView.text = sb.toString()
}