设定页面修改
This commit is contained in:
@@ -168,5 +168,8 @@ public class APPEasyFloat implements Application.ActivityLifecycleCallbacks {
|
||||
FloatingView.get().remove();
|
||||
FloatingView.get().detach(activity);
|
||||
activity.getApplication().unregisterActivityLifecycleCallbacks(this);
|
||||
if (magnetViewListener != null) {
|
||||
magnetViewListener.dismiss();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7,4 +7,6 @@ public interface MagnetViewListener {
|
||||
void invoke(FloatingMagnetView magnetView);
|
||||
|
||||
void onRemove();
|
||||
|
||||
void dismiss();
|
||||
}
|
||||
|
||||
@@ -47,7 +47,7 @@ public class LiveFloatView implements Function1<FloatCallbacks.Builder, Unit> {
|
||||
return instance;
|
||||
}
|
||||
|
||||
public void builderFloat(Activity mContext, String url,Class<?> back) {
|
||||
public void builderFloat(Activity mContext, String url, Class<?> back) {
|
||||
this.mContext = mContext;
|
||||
this.url = url;
|
||||
APPEasyFloat.getInstance().layout(R.layout.view_flaot_live)
|
||||
@@ -77,7 +77,13 @@ public class LiveFloatView implements Function1<FloatCallbacks.Builder, Unit> {
|
||||
|
||||
@Override
|
||||
public void onRemove() {
|
||||
// mPlayer.stopPlay();
|
||||
//
|
||||
}
|
||||
|
||||
@Override
|
||||
public void dismiss() {
|
||||
if (mPlayer != null)
|
||||
mPlayer.stopPlay();
|
||||
}
|
||||
})
|
||||
.show(mContext);
|
||||
|
||||
@@ -924,4 +924,11 @@ Limited ride And limited avatar frame</string>
|
||||
<string name="do_you_like">Don\'t like the small window play?\n You can turn it off in [Personal Center] - [Settings]</string>
|
||||
<string name="to_set_up">Go to Settings</string>
|
||||
<string name="know_the">Got it</string>
|
||||
<string name="individual_set">Personal Settings</string>
|
||||
<string name="reward">Rewards</string>
|
||||
<string name="change_the_password">Change password</string>
|
||||
<string name="blacklist">Blacklist</string>
|
||||
<string name="alerts">Message Settings</string>
|
||||
<string name="studio_gift_effects">Blocking gift effects</string>
|
||||
<string name="studio_ride_effects">Blocking seat effects</string>
|
||||
</resources>
|
||||
|
||||
Reference in New Issue
Block a user