设定页面修改
This commit is contained in:
parent
5f27031620
commit
c2d2687441
@ -168,5 +168,8 @@ public class APPEasyFloat implements Application.ActivityLifecycleCallbacks {
|
|||||||
FloatingView.get().remove();
|
FloatingView.get().remove();
|
||||||
FloatingView.get().detach(activity);
|
FloatingView.get().detach(activity);
|
||||||
activity.getApplication().unregisterActivityLifecycleCallbacks(this);
|
activity.getApplication().unregisterActivityLifecycleCallbacks(this);
|
||||||
|
if (magnetViewListener != null) {
|
||||||
|
magnetViewListener.dismiss();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -7,4 +7,6 @@ public interface MagnetViewListener {
|
|||||||
void invoke(FloatingMagnetView magnetView);
|
void invoke(FloatingMagnetView magnetView);
|
||||||
|
|
||||||
void onRemove();
|
void onRemove();
|
||||||
|
|
||||||
|
void dismiss();
|
||||||
}
|
}
|
||||||
|
@ -47,7 +47,7 @@ public class LiveFloatView implements Function1<FloatCallbacks.Builder, Unit> {
|
|||||||
return instance;
|
return instance;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void builderFloat(Activity mContext, String url,Class<?> back) {
|
public void builderFloat(Activity mContext, String url, Class<?> back) {
|
||||||
this.mContext = mContext;
|
this.mContext = mContext;
|
||||||
this.url = url;
|
this.url = url;
|
||||||
APPEasyFloat.getInstance().layout(R.layout.view_flaot_live)
|
APPEasyFloat.getInstance().layout(R.layout.view_flaot_live)
|
||||||
@ -77,7 +77,13 @@ public class LiveFloatView implements Function1<FloatCallbacks.Builder, Unit> {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onRemove() {
|
public void onRemove() {
|
||||||
// mPlayer.stopPlay();
|
//
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void dismiss() {
|
||||||
|
if (mPlayer != null)
|
||||||
|
mPlayer.stopPlay();
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.show(mContext);
|
.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="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="to_set_up">Go to Settings</string>
|
||||||
<string name="know_the">Got it</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>
|
</resources>
|
||||||
|
@ -38,6 +38,7 @@ import com.yunbao.common.utils.RouteUtil;
|
|||||||
import com.yunbao.common.utils.ToastUtil;
|
import com.yunbao.common.utils.ToastUtil;
|
||||||
import com.yunbao.common.utils.VersionUtil;
|
import com.yunbao.common.utils.VersionUtil;
|
||||||
import com.yunbao.common.utils.WordUtil;
|
import com.yunbao.common.utils.WordUtil;
|
||||||
|
import com.yunbao.common.views.floatingview.APPEasyFloat;
|
||||||
import com.yunbao.common.views.weight.ViewClicksAntiShake;
|
import com.yunbao.common.views.weight.ViewClicksAntiShake;
|
||||||
import com.yunbao.main.R;
|
import com.yunbao.main.R;
|
||||||
import com.yunbao.main.adapter.SettingAdapter;
|
import com.yunbao.main.adapter.SettingAdapter;
|
||||||
@ -103,6 +104,14 @@ public class SettingActivity extends AbsActivity implements OnItemClickListener<
|
|||||||
mRecyclerView.setAdapter(mAdapter);
|
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() {
|
ViewClicksAntiShake.clicksAntiShake(findViewById(R.id.blacklist), new ViewClicksAntiShake.ViewClicksCallBack() {
|
||||||
@Override
|
@Override
|
||||||
@ -179,6 +188,7 @@ public class SettingActivity extends AbsActivity implements OnItemClickListener<
|
|||||||
}
|
}
|
||||||
//更新特效开关
|
//更新特效开关
|
||||||
IMLoginManager.get(mContext).initFloat(isFloat);
|
IMLoginManager.get(mContext).initFloat(isFloat);
|
||||||
|
APPEasyFloat.getInstance().dismiss(mContext);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
//系统悬浮窗
|
//系统悬浮窗
|
||||||
|
@ -24,6 +24,7 @@
|
|||||||
android:orientation="vertical">
|
android:orientation="vertical">
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
|
android:id="@+id/individual_set"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:gravity="center_vertical"
|
android:gravity="center_vertical"
|
||||||
|
Loading…
Reference in New Issue
Block a user