fbnrst / SoundRecorder

A simple sound recording app implementing Material Design
GNU General Public License v3.0
2 stars 1 forks source link

Duplicate file view when renaming a file #1

Closed fbnrst closed 7 years ago

fbnrst commented 8 years ago

If you rename a file it will be shown twice in the list of files.

Steps to replicate: 1) Rename a file 2) The renamed file will appear on top of the file list and at its original position. The filename is correctly updated

Workaround: Restart the app.

It seems to be specific to viewing files from the external SD card on my Motorola Moto E. If I change the line 44 in SoundRecorder/app/src/main/java/com/danielkim/soundrecorder/adapters/FileViewerAdapter.java from

storagePath = "/storage/sdcard1/" + context.getString(R.string.storage_dir);

to

storagePath = "/storage/sdcard0/" + context.getString(R.string.storage_dir);

then the files from the emulated internal storage are shown and rename works fine.

fbnrst commented 7 years ago

Resolved after performing rebase.