Skip to content

Commit

Permalink
Fix non-null state for button
Browse files Browse the repository at this point in the history
  • Loading branch information
Iamlooker committed Oct 18, 2023
1 parent 7c1876d commit c3fef8b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,8 @@ class AppDetailFragment() : ScreenFragment(), AppDetailAdapter.Callbacks {
}

val adapterAction = when {
installing?.isCancellable == true -> AppDetailAdapter.Action.CANCEL
installing == InstallState.Installing -> null
installing == InstallState.Pending -> AppDetailAdapter.Action.CANCEL
downloading -> AppDetailAdapter.Action.CANCEL
else -> primaryAction.adapterAction
}
Expand Down

0 comments on commit c3fef8b

Please sign in to comment.