mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-12-23 01:11:48 +01:00
Storio imported from Jitpack. Also fix an issue with the progress bar animation on the reader
This commit is contained in:
parent
0afd77d110
commit
f12d5ba689
@ -161,7 +161,9 @@ dependencies {
|
|||||||
implementation 'com.github.gabrielemariotti.changeloglib:changelog:2.1.0'
|
implementation 'com.github.gabrielemariotti.changeloglib:changelog:2.1.0'
|
||||||
|
|
||||||
// Database
|
// Database
|
||||||
implementation 'eu.kanade.storio:storio:1.13.0'
|
implementation 'android.arch.persistence:db:1.0.0'
|
||||||
|
implementation 'com.github.inorichi.storio:storio-common:8be19de@aar'
|
||||||
|
implementation 'com.github.inorichi.storio:storio-sqlite:8be19de@aar'
|
||||||
implementation 'io.requery:sqlite-android:3.25.2'
|
implementation 'io.requery:sqlite-android:3.25.2'
|
||||||
|
|
||||||
// Model View Presenter
|
// Model View Presenter
|
||||||
|
@ -116,23 +116,17 @@ class ReaderProgressBar @JvmOverloads constructor(
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Called when the aggregated visibility of this view changes. It also starts of stops the
|
* Called when the visibility of this view changes.
|
||||||
* rotation animation according to [isVisible].
|
|
||||||
*/
|
*/
|
||||||
override fun onVisibilityAggregated(isVisible: Boolean) {
|
override fun setVisibility(visibility: Int) {
|
||||||
super.onVisibilityAggregated(isVisible)
|
super.setVisibility(visibility)
|
||||||
|
val isVisible = visibility == View.VISIBLE
|
||||||
if (isVisible != aggregatedIsVisible) {
|
|
||||||
aggregatedIsVisible = isVisible
|
|
||||||
|
|
||||||
// let's be nice with the UI thread
|
|
||||||
if (isVisible) {
|
if (isVisible) {
|
||||||
startAnimation()
|
startAnimation()
|
||||||
} else {
|
} else {
|
||||||
stopAnimation()
|
stopAnimation()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Starts the rotation animation if needed.
|
* Starts the rotation animation if needed.
|
||||||
|
@ -22,6 +22,5 @@ allprojects {
|
|||||||
maven { url "https://jitpack.io" }
|
maven { url "https://jitpack.io" }
|
||||||
maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
|
maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
|
||||||
jcenter()
|
jcenter()
|
||||||
maven { url "https://dl.bintray.com/inorichi/maven" }
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user