mirror of
https://github.com/ikun0014/lx-music-mobile.git
synced 2025-07-02 18:32:10 +08:00
修复某些情况下桌面歌词会导致APP崩溃的问题
This commit is contained in:
parent
6c0db131b6
commit
3c0fd6449f
@ -68,7 +68,7 @@ public class Lyric extends LyricPlayer {
|
||||
lyricView.runOnUiThread(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
lyricView.destroy();
|
||||
lyricView.destroyView();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
@ -348,10 +348,15 @@ public class LyricView extends Activity implements View.OnTouchListener {
|
||||
windowManager.updateViewLayout(textView, layoutParams);
|
||||
}
|
||||
|
||||
public void destroy() {
|
||||
public void destroyView() {
|
||||
if (textView == null) return;
|
||||
windowManager.removeView(textView);
|
||||
windowManager = null;
|
||||
textView = null;
|
||||
}
|
||||
|
||||
public void destroy() {
|
||||
destroyView();
|
||||
windowManager = null;
|
||||
layoutParams = null;
|
||||
}
|
||||
}
|
||||
|
@ -1,3 +1,7 @@
|
||||
### 修复
|
||||
|
||||
- 修复某些情况下桌面歌词会导致APP崩溃的问题
|
||||
|
||||
### 其他
|
||||
|
||||
- 升级React native到v0.65.1
|
||||
|
Loading…
x
Reference in New Issue
Block a user