diff --git a/app/build.gradle b/app/build.gradle
index f13384580..0d622f3a3 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -98,7 +98,7 @@ android {
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'
// Android support library
diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderCustomFilterDialog.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderCustomFilterDialog.kt
index dc820106e..4dc26c487 100644
--- a/app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderCustomFilterDialog.kt
+++ b/app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderCustomFilterDialog.kt
@@ -96,6 +96,7 @@ class ReaderCustomFilterDialog : DialogFragment() {
// Set brightness value
txt_brightness_seekbar_value.text = brightness.toString()
+ brightness_seekbar.progress = brightness
// Initialize seekBar progress
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() {
override fun onProgressChanged(seekBar: SeekBar, value: Int, fromUser: Boolean) {
if (fromUser) {
diff --git a/app/src/main/java/eu/kanade/tachiyomi/widget/NegativeSeekBar.kt b/app/src/main/java/eu/kanade/tachiyomi/widget/NegativeSeekBar.kt
index 44c9ee150..807435b4e 100644
--- a/app/src/main/java/eu/kanade/tachiyomi/widget/NegativeSeekBar.kt
+++ b/app/src/main/java/eu/kanade/tachiyomi/widget/NegativeSeekBar.kt
@@ -1,6 +1,7 @@
package eu.kanade.tachiyomi.widget
import android.content.Context
+import android.os.Parcelable
import android.util.AttributeSet
import android.widget.SeekBar
import eu.kanade.tachiyomi.R
@@ -58,4 +59,11 @@ class NegativeSeekBar @JvmOverloads constructor(context: Context, attrs: Attribu
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)
+ }
+
}
\ No newline at end of file
diff --git a/app/src/main/res/layout/dialog_reader_custom_filter.xml b/app/src/main/res/layout/dialog_reader_custom_filter.xml
index 4abe82fdd..0f5483dea 100644
--- a/app/src/main/res/layout/dialog_reader_custom_filter.xml
+++ b/app/src/main/res/layout/dialog_reader_custom_filter.xml
@@ -28,230 +28,236 @@
android:visibility="gone" />
-
+ android:layout_height="match_parent">
-
+ android:layout_height="match_parent"
+ android:orientation="vertical"
+ android:padding="@dimen/material_component_dialogs_padding_around_content_area">
-
-
-
-
-
-
-
+ android:text="@string/pref_custom_color_filter" />
-
+
-
+
-
+
-
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ android:layout_marginTop="@dimen/material_component_cards_primary_title_top_padding"
+ android:text="@string/pref_custom_brightness" />
-
-
-
-
-
-
-
-
-
-
+ android:layout_height="wrap_content">
-
+
-
+
-
+
-
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
\ No newline at end of file