mirror of
https://github.com/ikun0014/lx-music-mobile.git
synced 2025-07-04 16:08:54 +08:00
移除多余代码
This commit is contained in:
parent
cb749e494a
commit
2e7a7d1f76
@ -294,9 +294,9 @@ public class LyricView extends Activity implements View.OnTouchListener {
|
||||
|
||||
public void setColor(String color) {
|
||||
themeColor = color;
|
||||
if (windowManager == null || textView == null) return;
|
||||
if (textView == null) return;
|
||||
textView.setTextColor(Color.parseColor(color));
|
||||
windowManager.updateViewLayout(textView, layoutParams);
|
||||
// windowManager.updateViewLayout(textView, layoutParams);
|
||||
}
|
||||
|
||||
public void setLyricTextPosition(String textX, String textY) {
|
||||
@ -336,7 +336,7 @@ public class LyricView extends Activity implements View.OnTouchListener {
|
||||
|
||||
public void setAlpha(float alpha) {
|
||||
this.alpha = alpha;
|
||||
if (windowManager == null || textView == null) return;
|
||||
if (textView == null) return;
|
||||
textView.setAlpha(alpha);
|
||||
}
|
||||
|
||||
@ -349,7 +349,7 @@ public class LyricView extends Activity implements View.OnTouchListener {
|
||||
}
|
||||
|
||||
public void destroyView() {
|
||||
if (textView == null) return;
|
||||
if (textView == null || windowManager == null) return;
|
||||
windowManager.removeView(textView);
|
||||
textView = null;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user