Skip to content

Commit

Permalink
change smoothScrollToPosition
Browse files Browse the repository at this point in the history
  • Loading branch information
SlaVcE14 committed Jan 28, 2024
1 parent 725be11 commit f071afe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/main/java/com/sjapps/jsonlist/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ public void open(String Title, String path, int previousPosition) {

if (previousPosition == -1) {
handler.postDelayed(() -> {
list.smoothScrollToPosition(data.getPreviousPos()+4);
list.smoothScrollToPosition(data.getPreviousPos()+2);
adapter.setHighlightItem(data.getPreviousPos());
}, 500);
handler.postDelayed(() -> {
Expand Down

0 comments on commit f071afe

Please sign in to comment.