Skip to content

Commit

Permalink
stuff (#567)
Browse files Browse the repository at this point in the history
* Add blur to dialog for devices that support it

* More adjustable seek time

* Bump exo player
  • Loading branch information
Sadwhy authored Jan 17, 2025
1 parent 6fa2f11 commit 6fd3515
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 7 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ dependencies {
implementation 'jp.wasabeef:glide-transformations:4.3.0'

// Exoplayer
ext.exo_version = '1.5.0'
ext.exo_version = '1.5.1'
implementation "androidx.media3:media3-exoplayer:$exo_version"
implementation "androidx.media3:media3-ui:$exo_version"
implementation "androidx.media3:media3-exoplayer-hls:$exo_version"
Expand All @@ -124,7 +124,7 @@ dependencies {
implementation "androidx.media3:media3-cast:$exo_version"
implementation "androidx.mediarouter:mediarouter:1.7.0"
// Media3 extension
implementation "com.github.anilbeesetti.nextlib:nextlib-media3ext:0.8.3"
implementation "com.github.anilbeesetti.nextlib:nextlib-media3ext:0.8.4"

// UI
implementation 'com.google.android.material:material:1.12.0'
Expand Down
10 changes: 9 additions & 1 deletion app/src/main/java/ani/dantotsu/util/AlertDialogBuilder.kt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ package ani.dantotsu.util
import android.app.Activity
import android.app.AlertDialog
import android.content.Context
import android.os.Build
import android.view.WindowManager
import android.view.View
import ani.dantotsu.R

Expand Down Expand Up @@ -205,8 +207,14 @@ class AlertDialogBuilder(private val context: Context) {
onShow?.invoke()
}
dialog.window?.apply {
setDimAmount(0.8f)
setDimAmount(0.5f)
attributes.windowAnimations = android.R.style.Animation_Dialog
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) {
val params = attributes
params.flags = params.flags or WindowManager.LayoutParams.FLAG_BLUR_BEHIND
params.setBlurBehindRadius(20)
attributes = params
}
}
dialog.show()
}
Expand Down
8 changes: 4 additions & 4 deletions app/src/main/res/layout/activity_player_settings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1102,10 +1102,10 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginHorizontal="32dp"
android:stepSize="5.0"
android:value="15.0"
android:valueFrom="5.0"
android:valueTo="45.0"
android:stepSize="1.0"
android:value="10.0"
android:valueFrom="1.0"
android:valueTo="50.0"
app:labelBehavior="floating"
app:labelStyle="@style/fontTooltip"
app:thumbColor="?attr/colorSecondary"
Expand Down

0 comments on commit 6fd3515

Please # to comment.