mirror of
https://github.com/mihonapp/mihon.git
synced 2024-11-07 20:31:02 -05:00
Fix #660. Update subsampling
This commit is contained in:
parent
2230ad59f1
commit
6de260d73f
4 changed files with 222 additions and 207 deletions
|
@ -98,7 +98,7 @@ android {
|
||||||
dependencies {
|
dependencies {
|
||||||
|
|
||||||
// Modified dependencies
|
// Modified dependencies
|
||||||
compile 'com.github.inorichi:subsampling-scale-image-view:8a22092'
|
compile 'com.github.inorichi:subsampling-scale-image-view:4255750'
|
||||||
compile 'com.github.inorichi:junrar-android:634c1f5'
|
compile 'com.github.inorichi:junrar-android:634c1f5'
|
||||||
|
|
||||||
// Android support library
|
// Android support library
|
||||||
|
|
|
@ -96,6 +96,7 @@ class ReaderCustomFilterDialog : DialogFragment() {
|
||||||
|
|
||||||
// Set brightness value
|
// Set brightness value
|
||||||
txt_brightness_seekbar_value.text = brightness.toString()
|
txt_brightness_seekbar_value.text = brightness.toString()
|
||||||
|
brightness_seekbar.progress = brightness
|
||||||
|
|
||||||
// Initialize seekBar progress
|
// Initialize seekBar progress
|
||||||
seekbar_color_filter_alpha.progress = argb[0]
|
seekbar_color_filter_alpha.progress = argb[0]
|
||||||
|
@ -145,7 +146,7 @@ class ReaderCustomFilterDialog : DialogFragment() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
brightness_seekbar.progress = preferences.customBrightnessValue().getOrDefault()
|
|
||||||
brightness_seekbar.setOnSeekBarChangeListener(object : SimpleSeekBarListener() {
|
brightness_seekbar.setOnSeekBarChangeListener(object : SimpleSeekBarListener() {
|
||||||
override fun onProgressChanged(seekBar: SeekBar, value: Int, fromUser: Boolean) {
|
override fun onProgressChanged(seekBar: SeekBar, value: Int, fromUser: Boolean) {
|
||||||
if (fromUser) {
|
if (fromUser) {
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
package eu.kanade.tachiyomi.widget
|
package eu.kanade.tachiyomi.widget
|
||||||
|
|
||||||
import android.content.Context
|
import android.content.Context
|
||||||
|
import android.os.Parcelable
|
||||||
import android.util.AttributeSet
|
import android.util.AttributeSet
|
||||||
import android.widget.SeekBar
|
import android.widget.SeekBar
|
||||||
import eu.kanade.tachiyomi.R
|
import eu.kanade.tachiyomi.R
|
||||||
|
@ -58,4 +59,11 @@ class NegativeSeekBar @JvmOverloads constructor(context: Context, attrs: Attribu
|
||||||
this.listener = listener
|
this.listener = listener
|
||||||
}
|
}
|
||||||
|
|
||||||
|
override fun onRestoreInstanceState(state: Parcelable?) {
|
||||||
|
// We can't restore the progress from the saved state because it gets shifted.
|
||||||
|
val origProgress = progress
|
||||||
|
super.onRestoreInstanceState(state)
|
||||||
|
super.setProgress(origProgress)
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
|
@ -28,6 +28,10 @@
|
||||||
android:visibility="gone" />
|
android:visibility="gone" />
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
||||||
|
|
||||||
|
<ScrollView
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="match_parent">
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
|
@ -254,4 +258,6 @@
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
|
</ScrollView>
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
Loading…
Reference in a new issue