Skip to content

Commit

Permalink
default refresh rate on lower android versions
Browse files Browse the repository at this point in the history
  • Loading branch information
itszechs committed Feb 9, 2023
1 parent ca941a7 commit 3fcbfd4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mpv/src/main/java/zechs/mpv/MPVView.kt
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ class MPVView(
@Suppress("DEPRECATION")
wm.defaultDisplay
}
val refreshRate = display.mode.refreshRate
val refreshRate = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
display.mode.refreshRate
} else 60.0F
val deviceLanguage = Locale.getDefault().isO3Language

Log.d(TAG, "Device language: $deviceLanguage")
Expand Down

0 comments on commit 3fcbfd4

Please sign in to comment.