设定页面修改

This commit is contained in:
18401019693 2022-10-22 10:04:05 +08:00
parent 5f27031620
commit c2d2687441
6 changed files with 31 additions and 2 deletions

View File

@ -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();
}
}
}

View File

@ -7,4 +7,6 @@ public interface MagnetViewListener {
void invoke(FloatingMagnetView magnetView);
void onRemove();
void dismiss();
}

View File

@ -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);

View File

@ -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>

View File

@ -38,6 +38,7 @@ import com.yunbao.common.utils.RouteUtil;
import com.yunbao.common.utils.ToastUtil;
import com.yunbao.common.utils.VersionUtil;
import com.yunbao.common.utils.WordUtil;
import com.yunbao.common.views.floatingview.APPEasyFloat;
import com.yunbao.common.views.weight.ViewClicksAntiShake;
import com.yunbao.main.R;
import com.yunbao.main.adapter.SettingAdapter;
@ -103,6 +104,14 @@ public class SettingActivity extends AbsActivity implements OnItemClickListener<
mRecyclerView.setAdapter(mAdapter);
}
});
//跳转自己
ViewClicksAntiShake.clicksAntiShake(findViewById(R.id.individual_set), new ViewClicksAntiShake.ViewClicksCallBack() {
@Override
public void onViewClicks() {
RouteUtil.forwardEditProfileActivity();
}
});
//黑名单
ViewClicksAntiShake.clicksAntiShake(findViewById(R.id.blacklist), new ViewClicksAntiShake.ViewClicksCallBack() {
@Override
@ -179,6 +188,7 @@ public class SettingActivity extends AbsActivity implements OnItemClickListener<
}
//更新特效开关
IMLoginManager.get(mContext).initFloat(isFloat);
APPEasyFloat.getInstance().dismiss(mContext);
}
});
//系统悬浮窗

View File

@ -24,6 +24,7 @@
android:orientation="vertical">
<LinearLayout
android:id="@+id/individual_set"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_vertical"