From c4bed120035a46be7dffbdaa32c8172d32c5a96b Mon Sep 17 00:00:00 2001 From: 18401019693 Date: Wed, 24 Aug 2022 18:16:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=EF=BC=9A=20=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E7=9B=B4=E6=92=AD=E9=97=B4loading=E6=92=AD=E6=94=BE?= =?UTF-8?q?=E5=A4=B4=E5=83=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../live/views/PortraitLiveManager.java | 5 ++- .../main/res/drawable/loading_animation.xml | 32 +++++++++---------- 2 files changed, 20 insertions(+), 17 deletions(-) diff --git a/live/src/main/java/com/yunbao/live/views/PortraitLiveManager.java b/live/src/main/java/com/yunbao/live/views/PortraitLiveManager.java index 01e85098a..166437e91 100644 --- a/live/src/main/java/com/yunbao/live/views/PortraitLiveManager.java +++ b/live/src/main/java/com/yunbao/live/views/PortraitLiveManager.java @@ -253,7 +253,10 @@ public class PortraitLiveManager implements LivePlayListener, SocketMessageListe @Override public void onRemove() { - mLiveAudienceViewHolder.removeCallbacks(); + if (mLiveAudienceViewHolder != null) { + mLiveAudienceViewHolder.removeCallbacks(); + } + mLiveAudienceViewHolder = null; //断开socket if (mSocketRyClient != null) { diff --git a/live/src/main/res/drawable/loading_animation.xml b/live/src/main/res/drawable/loading_animation.xml index e5e8157eb..4a98f36b8 100644 --- a/live/src/main/res/drawable/loading_animation.xml +++ b/live/src/main/res/drawable/loading_animation.xml @@ -3,52 +3,52 @@ + android:duration="100" /> + android:duration="100" /> + android:duration="100" /> + android:duration="100" /> + android:duration="100" /> + android:duration="100" /> + android:duration="100" /> + android:duration="100" /> + android:duration="100" /> + android:duration="100" /> + android:duration="100" /> + android:duration="100" /> + android:duration="100" /> + android:duration="100" /> + android:duration="100" /> + android:duration="100" /> \ No newline at end of file