Skip to content

Commit 5a74f7e

Browse files
committed
feat: clear the file hashes if a new file is selected, ignore the release folder
1 parent dc9ea1f commit 5a74f7e

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@
1010

1111
.idea/*
1212
.idea
13+
/app/release/

app/src/main/java/com/codedead/deadhash/gui/MainActivity.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,9 @@ protected void onCreate(final Bundle savedInstanceState) {
157157
if (cursor != null && cursor.moveToFirst()) {
158158
@SuppressLint("Range") String displayName = cursor.getString(cursor.getColumnIndex(OpenableColumns.DISPLAY_NAME));
159159
edtFilePath.setText(displayName);
160+
161+
fileDataArrayList.clear();
162+
mAdapterFile.notifyDataSetChanged();
160163
}
161164
}
162165
} else {

0 commit comments

Comments
 (0)