Skip to content

Commit

Permalink
Removed unnecessary code
Browse files Browse the repository at this point in the history
  • Loading branch information
fengdai committed May 27, 2022
1 parent 7fde9d9 commit ae75482
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions media/src/main/java/com/github/fengdai/compose/media/Media.kt
Original file line number Diff line number Diff line change
Expand Up @@ -327,15 +327,6 @@ fun Media(
}
onDispose {}
}
var controllerChanged by remember(controller as? Any) { mutableStateOf(true) }
if (controllerChanged) {
// reset controllerState if controller changed
if (!state.controllerState.maybeShow()) {
state.controllerState.visibility = ControllerVisibility.Invisible
}
@Suppress("UNUSED_VALUE")
controllerChanged = false
}
if (controller != null) controller(state)
}
}
Expand Down

0 comments on commit ae75482

Please sign in to comment.