Skip to content

Commit

Permalink
Merge pull request #34 from CodeDead/feature/improvements
Browse files Browse the repository at this point in the history
feat: clear the file hashes if a new file is selected, ignore the rel…
  • Loading branch information
CodeDead authored Dec 8, 2023
2 parents dc9ea1f + 5a74f7e commit 6471c73
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@

.idea/*
.idea
/app/release/
3 changes: 3 additions & 0 deletions app/src/main/java/com/codedead/deadhash/gui/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,9 @@ protected void onCreate(final Bundle savedInstanceState) {
if (cursor != null && cursor.moveToFirst()) {
@SuppressLint("Range") String displayName = cursor.getString(cursor.getColumnIndex(OpenableColumns.DISPLAY_NAME));
edtFilePath.setText(displayName);

fileDataArrayList.clear();
mAdapterFile.notifyDataSetChanged();
}
}
} else {
Expand Down

0 comments on commit 6471c73

Please sign in to comment.