Skip to content

Commit

Permalink
PAINTROID-651 : Adding a new layer changes intensity of other layers (C…
Browse files Browse the repository at this point in the history
…atrobat#1312)

* PAINTROID-651 : Adding a new layer changes intensity of other layers

* Revert Browserstack stage in Jenkinsfile

---------

Co-authored-by: Csongor Hegedüs <[email protected]>
  • Loading branch information
exland and csongorhg authored Oct 17, 2023
1 parent f0f91d2 commit 9ff36e5
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,7 @@ class LayerAdapter(
get() = itemView

override fun bindView() {
val layer = layerPresenter.getLayerItem(position)
if (layer == null) {
return
}
val layer = layerPresenter.getLayerItem(position) ?: return
val isSelected = layer === layerPresenter.getSelectedLayer()
setSelected(isSelected)
setLayerVisibilityCheckbox(layer.isVisible)
Expand Down Expand Up @@ -145,8 +142,6 @@ class LayerAdapter(
opacitySeekBar.progress = opacityPercentage
layerPresenter.changeLayerOpacity(position, opacityPercentage)
}

layer.opacityPercentage = opacityPercentage
layerPresenter.refreshDrawingSurface()
}
})
Expand Down

0 comments on commit 9ff36e5

Please sign in to comment.