Skip to content

Commit

Permalink
fix: clear recent commits on repo deselect
Browse files Browse the repository at this point in the history
  • Loading branch information
ViscousPot committed Oct 22, 2024
1 parent 74603e1 commit 44a0144
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/src/main/java/com/viscouspot/gitsync/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -452,6 +452,9 @@ class MainActivity : AppCompatActivity() {

gitDirPath.setText("")
refreshGitRepo()
val recentCommitsSize = recentCommits.size
recentCommits.clear()
recentCommitsAdapter.notifyItemRangeRemoved(0, recentCommitsSize)
}

selectDirButton.setOnClickListener {
Expand Down

0 comments on commit 44a0144

Please sign in to comment.