Skip to content

Commit 568cdcb

Browse files
committed
reset mCurrentLyricFilePath when lyric file is null or not exist
1 parent 4ae6550 commit 568cdcb

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

lyricview/src/main/java/me/zhengken/lyricview/LyricView.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,7 @@ public void setLyricFile(File file) {
288288

289289
if (file == null || !file.exists()) {
290290
reset();
291+
mCurrentLyricFilePath = "";
291292
return;
292293
} else if (file.getPath().equals(mCurrentLyricFilePath)) {
293294
return;

0 commit comments

Comments
 (0)