Small fix
This commit is contained in:
@@ -573,7 +573,6 @@ class MainActivity : AppCompatActivity() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (next is LinearLayout) {
|
if (next is LinearLayout) {
|
||||||
Log.d("Pupil", "hmm...")
|
|
||||||
val icon = next.findViewById<ImageView>(R.id.icon_next)
|
val icon = next.findViewById<ImageView>(R.id.icon_next)
|
||||||
next.layoutParams.height = 1
|
next.layoutParams.height = 1
|
||||||
icon.layoutParams.height = 1
|
icon.layoutParams.height = 1
|
||||||
|
|||||||
@@ -190,6 +190,7 @@ class ReaderActivity : AppCompatActivity() {
|
|||||||
onNotifyChangedHandler = { notify ->
|
onNotifyChangedHandler = { notify ->
|
||||||
val fab = reader_fab_download
|
val fab = reader_fab_download
|
||||||
|
|
||||||
|
runOnUiThread {
|
||||||
if (notify) {
|
if (notify) {
|
||||||
val icon = AnimatedVectorDrawableCompat.create(this, R.drawable.ic_downloading)
|
val icon = AnimatedVectorDrawableCompat.create(this, R.drawable.ic_downloading)
|
||||||
icon?.registerAnimationCallback(object: Animatable2Compat.AnimationCallback() {
|
icon?.registerAnimationCallback(object: Animatable2Compat.AnimationCallback() {
|
||||||
@@ -210,10 +211,13 @@ class ReaderActivity : AppCompatActivity() {
|
|||||||
fab.setImageDrawable(icon)
|
fab.setImageDrawable(icon)
|
||||||
icon?.start()
|
icon?.start()
|
||||||
} else {
|
} else {
|
||||||
|
runOnUiThread {
|
||||||
fab.setImageResource(R.drawable.ic_download)
|
fab.setImageResource(R.drawable.ic_download)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (downloader.download) {
|
if (downloader.download) {
|
||||||
downloader.invokeOnReaderLoaded()
|
downloader.invokeOnReaderLoaded()
|
||||||
|
|||||||
Reference in New Issue
Block a user