Skip to content

Commit 2e8156c

Browse files
committed
Clear idList before adding
1 parent 3326b81 commit 2e8156c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/src/main/java/com/eiyooooo/foldswitcher/adapters/MainViewPagerAdapter.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ class MainViewPagerAdapter(private val mainActivity: MainActivity, private val m
7676
addItem(InstructionViewHolder.CREATOR, null, ID_INSTRUCTION)
7777
addItem(InstructionQuickSwitchViewHolder.CREATOR, null, ID_INSTRUCTION_QUICK_SWITCH)
7878
addItem(FoldStateViewHolder.CREATOR, FoldStateData(this, mainModel, -1, mainActivity.getString(R.string.state_reset)), ID_RESET_STATE)
79+
idList.clear()
7980
var id = 7L
8081
mainModel.getExecutor().supportStates.forEach { pair ->
8182
val name = pair.second.ifEmpty { pair.first.toString() }

0 commit comments

Comments
 (0)