修改中英文

This commit is contained in:
18401019693 2023-10-11 15:40:39 +08:00
parent 3e5ba2ba19
commit 000929fd02
4 changed files with 22 additions and 7 deletions

View File

@ -8,7 +8,6 @@ import android.text.TextUtils;
import androidx.annotation.NonNull;
import com.alibaba.fastjson.JSONArray;
import com.google.gson.Gson;
import com.lzf.easyfloat.EasyFloat;
import com.umeng.analytics.MobclickAgent;
@ -54,12 +53,19 @@ public class IMLoginManager extends BaseCacheManager {
private final String KEY_LANGUAGE = "language";
private final String KEY_GAME = "key_game";
public void setRedPoint() {
put("RedPoint", "1");
}
public boolean getRedPoint() {
return !TextUtils.isEmpty(getString("RedPoint")) && !TextUtils.equals(getString("RedPoint"), "1");
}
public void setSudGame(String sudGameJson) {
put(KEY_GAME, sudGameJson);
}
public String getSudGame() {
return getString(KEY_GAME);
}

View File

@ -1732,9 +1732,14 @@ public class LiveAudienceActivity extends LiveActivity {
}
if (isShow) {
manager.mLiveAudienceViewHolder.mRedPointPrivilege.setVisibility(View.VISIBLE);
} else {
if (IMLoginManager.get(mContext).getRedPoint()) {
manager.mLiveAudienceViewHolder.mRedPointPrivilege.setVisibility(View.VISIBLE);
}else {
manager.mLiveAudienceViewHolder.mRedPointPrivilege.setVisibility(View.GONE);
}
}
}
public void closeRoom() {

View File

@ -35,6 +35,7 @@ import com.yunbao.common.glide.ImgLoader;
import com.yunbao.common.http.API;
import com.yunbao.common.http.HttpCallback;
import com.yunbao.common.http.HttpClient;
import com.yunbao.common.manager.IMLoginManager;
import com.yunbao.common.utils.Bus;
import com.yunbao.common.utils.ProcessResultUtil;
import com.yunbao.common.utils.SpUtil;
@ -461,6 +462,7 @@ public class LiveAudienceViewHolder extends AbsLiveViewHolder {
* 身份特权
*/
public void openRoleDialog() {
IMLoginManager.get(mContext).setRedPoint();
// LiveRoleDialogFragment fragment = new LiveRoleDialogFragment();
// Bundle bundle = new Bundle();
// bundle.putBoolean("showRed", mRedPointPrivilege.getVisibility() == View.VISIBLE);

View File

@ -10,12 +10,14 @@
<TextView
android:id="@+id/item_task_title"
android:layout_width="wrap_content"
android:layout_width="350dp"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:layout_marginTop="11dp"
android:textSize="14sp"
android:ellipsize="end"
android:singleLine="true"
android:textColor="#FFFFFF"
android:textSize="14sp"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />