Skip to content

Commit d7d5706

Browse files
committed
更新demo
1 parent d18a7c0 commit d7d5706

File tree

4 files changed

+10
-7
lines changed

4 files changed

+10
-7
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ demo示例集成了播放控制组件**ControllerCover**、加载中组件**Load
4040
* **等功能……**<br>
4141

4242
# Demo下载
43-
[Demo下载](http://fir.im/lmhz)
43+
[Demo下载](http://d.alphaqr.com/lmhz)
4444

4545
# QQ交流群(600201778)
4646
<img src="https://github.com/jiajunhui/PlayerBase/raw/master/screenshot/qrcode_qq_group.jpg" width="270" height="370">

app/proguard-rules.pro

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@
5656
# 这个过滤器是谷歌推荐的算法,一般不做更改
5757
-optimizations !code/simplification/cast,!field/*,!class/merging/*
5858

59+
# 忽略警告
60+
-ignorewarnings
61+
5962

6063
#############################################
6164
#

app/src/main/java/com/kk/taurus/avplayer/cover/GestureCover.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -145,20 +145,20 @@ public void onValueUpdate(String key, Object value) {
145145
protected void onCoverAttachedToWindow() {
146146
super.onCoverAttachedToWindow();
147147
getGroupValue().registerOnGroupValueUpdateListener(mOnGroupValueUpdateListener);
148+
notifyWH();
149+
}
150+
151+
private void notifyWH() {
148152
getView().getViewTreeObserver().addOnGlobalLayoutListener(new ViewTreeObserver.OnGlobalLayoutListener() {
149153
@Override
150154
public void onGlobalLayout() {
151-
notifyWH();
155+
mWidth = getView().getWidth();
156+
mHeight = getView().getHeight();
152157
getView().getViewTreeObserver().removeOnGlobalLayoutListener(this);
153158
}
154159
});
155160
}
156161

157-
private void notifyWH() {
158-
mWidth = getView().getWidth();
159-
mHeight = getView().getHeight();
160-
}
161-
162162
@Override
163163
protected void onCoverDetachedToWindow() {
164164
super.onCoverDetachedToWindow();

screenshot/qrcode.png

-7.65 KB
Loading

0 commit comments

Comments
 (0)