Skip to content

Commit

Permalink
fix a crash
Browse files Browse the repository at this point in the history
  • Loading branch information
lingqiqi5211 committed Dec 12, 2024
1 parent 913ab68 commit cf466c2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ object NewFlashLight : TileUtils() {
if (!mControlValueInitialized) {
try {
toggleSliderBaseControllerImpl.callMethod("setValue", i, null)
} catch (_: Exception) {
} catch (_: Throwable) {
toggleSliderBaseControllerImpl.callMethod("setValue", i)
}
param.thisObject.setObjectField("mControlValueInitialized", true)
Expand All @@ -188,7 +188,7 @@ object NewFlashLight : TileUtils() {
param.thisObject.setObjectField("mExternalChange", true)
try {
toggleSliderBaseControllerImpl.callMethod("setValue", animation.animatedValue, null)
} catch (_: Exception) {
} catch (_: Throwable) {
toggleSliderBaseControllerImpl.callMethod("setValue", animation.animatedValue)
}
param.thisObject.setObjectField("mExternalChange", false)
Expand Down

0 comments on commit cf466c2

Please sign in to comment.