Skip to content

Commit 1fa8f5a

Browse files
author
维术
committed
[Exposed-UI] fix arrayoutofbound exception.
1 parent 59a1ef3 commit 1fa8f5a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

VirtualApp/app/src/main/java/io/virtualapp/home/adapters/LaunchpadAdapter.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,9 @@ public void setAppClickListener(OnAppClickListener mAppClickListener) {
172172
}
173173

174174
public void moveItem(int pos, int targetPos) {
175+
if (pos >= mList.size()) {
176+
return;
177+
}
175178
AppData model = mList.remove(pos);
176179
mList.add(targetPos, model);
177180
notifyItemMoved(pos, targetPos);

0 commit comments

Comments
 (0)