diff --git a/common/src/main/java/com/yunbao/common/dialog/HintDialog.java b/common/src/main/java/com/yunbao/common/dialog/HintDialog.java index a4ec14280..a7bdd8b35 100644 --- a/common/src/main/java/com/yunbao/common/dialog/HintDialog.java +++ b/common/src/main/java/com/yunbao/common/dialog/HintDialog.java @@ -7,6 +7,11 @@ import android.view.Window; import android.view.WindowManager; import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +import androidx.fragment.app.FragmentManager; +import androidx.fragment.app.FragmentTransaction; + import com.yunbao.common.R; import com.yunbao.common.manager.IMLoginManager; import com.yunbao.common.utils.DpUtil; @@ -77,6 +82,15 @@ public class HintDialog extends AbsDialogFragment { } + @Override + public void show(@NonNull FragmentManager manager, @Nullable String tag) { + try { + super.show(manager, tag); + } catch (Exception e) { + e.printStackTrace(); + } + } + private HintListener listener; public HintDialog setListener(HintListener listener) { diff --git a/common/src/main/java/com/yunbao/common/views/weight/LiveFloatView.java b/common/src/main/java/com/yunbao/common/views/weight/LiveFloatView.java index e4cb1333a..8c68b9ff7 100644 --- a/common/src/main/java/com/yunbao/common/views/weight/LiveFloatView.java +++ b/common/src/main/java/com/yunbao/common/views/weight/LiveFloatView.java @@ -9,6 +9,7 @@ import android.view.Gravity; import android.view.View; import android.widget.RelativeLayout; +import androidx.appcompat.app.AppCompatActivity; import androidx.cardview.widget.CardView; import androidx.fragment.app.FragmentActivity; @@ -28,12 +29,17 @@ import com.yunbao.common.dialog.HintDialog; import com.yunbao.common.http.HttpCallback; import com.yunbao.common.http.HttpClient; import com.yunbao.common.manager.IMLoginManager; +import com.yunbao.common.utils.DeviceUtils; import com.yunbao.common.utils.DpUtil; import com.yunbao.common.utils.RouteUtil; +import com.yunbao.common.utils.ToastUtil; import com.yunbao.common.views.floatingview.APPEasyFloat; import com.yunbao.common.views.floatingview.FloatingMagnetView; import com.yunbao.common.views.floatingview.MagnetViewListener; +import java.lang.ref.WeakReference; +import java.util.List; + import kotlin.Unit; import kotlin.jvm.functions.Function1; @@ -168,13 +174,13 @@ public class LiveFloatView implements Function1 { callback.invoke(aBoolean); } builder.dismiss(() -> { - if (mPlayer != null && mPlayer.isPlaying() ) { + if (mPlayer != null && mPlayer.isPlaying()) { mPlayer.stopPlay(true); } return null; }); builder.hide(view12 -> { - if (mPlayer != null && mPlayer.isPlaying() ) { + if (mPlayer != null && mPlayer.isPlaying()) { mPlayer.pause(); } return null;