Replies: 3 comments
-
Hello, Actually that methods to add, set or remove filter works exactly as an ArrayList. You have the documentation here: I recommend you read the class of the links to know how is working each method |
Beta Was this translation helpful? Give feedback.
-
addFilter helped to resolve the issue. Thanks |
Beta Was this translation helpful? Give feedback.
-
Closed as solved |
Beta Was this translation helpful? Give feedback.
-
Previously I used this code for adding Relative Layout as overlay but I am getting error like this, is there any change in the filter code, am I doing anything wrong
java.lang.IndexOutOfBoundsException: Index 0 out of bounds for length 0
at jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:64)
at jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:70)
at jdk.internal.util.Preconditions.checkIndex(Preconditions.java:266)
at java.util.Objects.checkIndex(Objects.java:359)
at java.util.ArrayList.get(ArrayList.java:434)
at com.pedro.encoder.input.gl.render.MainRender.setFilter(MainRender.kt:90)
at com.pedro.encoder.input.gl.render.MainRender.setFilterAction(MainRender.kt:152)
at com.pedro.library.view.OpenGlView.draw(OpenGlView.java:253)
at com.pedro.library.view.OpenGlView.lambda$onFrameAvailable$6(OpenGlView.java:351)
at com.pedro.library.view.OpenGlView.$r8$lambda$RS2sHa8eLk2bgOFuQOTNh03paC4(Unknown Source:0)
at com.pedro.library.view.OpenGlView$$ExternalSyntheticLambda4.run(D8$$SyntheticClass:0)
Beta Was this translation helpful? Give feedback.
All reactions