修改中英文
This commit is contained in:
parent
3e5ba2ba19
commit
000929fd02
@ -8,7 +8,6 @@ import android.text.TextUtils;
|
|||||||
|
|
||||||
import androidx.annotation.NonNull;
|
import androidx.annotation.NonNull;
|
||||||
|
|
||||||
import com.alibaba.fastjson.JSONArray;
|
|
||||||
import com.google.gson.Gson;
|
import com.google.gson.Gson;
|
||||||
import com.lzf.easyfloat.EasyFloat;
|
import com.lzf.easyfloat.EasyFloat;
|
||||||
import com.umeng.analytics.MobclickAgent;
|
import com.umeng.analytics.MobclickAgent;
|
||||||
@ -54,12 +53,19 @@ public class IMLoginManager extends BaseCacheManager {
|
|||||||
private final String KEY_LANGUAGE = "language";
|
private final String KEY_LANGUAGE = "language";
|
||||||
private final String KEY_GAME = "key_game";
|
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) {
|
public void setSudGame(String sudGameJson) {
|
||||||
put(KEY_GAME, sudGameJson);
|
put(KEY_GAME, sudGameJson);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public String getSudGame() {
|
public String getSudGame() {
|
||||||
return getString(KEY_GAME);
|
return getString(KEY_GAME);
|
||||||
}
|
}
|
||||||
|
@ -1732,9 +1732,14 @@ public class LiveAudienceActivity extends LiveActivity {
|
|||||||
}
|
}
|
||||||
if (isShow) {
|
if (isShow) {
|
||||||
manager.mLiveAudienceViewHolder.mRedPointPrivilege.setVisibility(View.VISIBLE);
|
manager.mLiveAudienceViewHolder.mRedPointPrivilege.setVisibility(View.VISIBLE);
|
||||||
|
} else {
|
||||||
|
if (IMLoginManager.get(mContext).getRedPoint()) {
|
||||||
|
manager.mLiveAudienceViewHolder.mRedPointPrivilege.setVisibility(View.VISIBLE);
|
||||||
}else {
|
}else {
|
||||||
manager.mLiveAudienceViewHolder.mRedPointPrivilege.setVisibility(View.GONE);
|
manager.mLiveAudienceViewHolder.mRedPointPrivilege.setVisibility(View.GONE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void closeRoom() {
|
public void closeRoom() {
|
||||||
|
@ -35,6 +35,7 @@ import com.yunbao.common.glide.ImgLoader;
|
|||||||
import com.yunbao.common.http.API;
|
import com.yunbao.common.http.API;
|
||||||
import com.yunbao.common.http.HttpCallback;
|
import com.yunbao.common.http.HttpCallback;
|
||||||
import com.yunbao.common.http.HttpClient;
|
import com.yunbao.common.http.HttpClient;
|
||||||
|
import com.yunbao.common.manager.IMLoginManager;
|
||||||
import com.yunbao.common.utils.Bus;
|
import com.yunbao.common.utils.Bus;
|
||||||
import com.yunbao.common.utils.ProcessResultUtil;
|
import com.yunbao.common.utils.ProcessResultUtil;
|
||||||
import com.yunbao.common.utils.SpUtil;
|
import com.yunbao.common.utils.SpUtil;
|
||||||
@ -461,6 +462,7 @@ public class LiveAudienceViewHolder extends AbsLiveViewHolder {
|
|||||||
* 身份特权
|
* 身份特权
|
||||||
*/
|
*/
|
||||||
public void openRoleDialog() {
|
public void openRoleDialog() {
|
||||||
|
IMLoginManager.get(mContext).setRedPoint();
|
||||||
// LiveRoleDialogFragment fragment = new LiveRoleDialogFragment();
|
// LiveRoleDialogFragment fragment = new LiveRoleDialogFragment();
|
||||||
// Bundle bundle = new Bundle();
|
// Bundle bundle = new Bundle();
|
||||||
// bundle.putBoolean("showRed", mRedPointPrivilege.getVisibility() == View.VISIBLE);
|
// bundle.putBoolean("showRed", mRedPointPrivilege.getVisibility() == View.VISIBLE);
|
||||||
|
@ -10,12 +10,14 @@
|
|||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/item_task_title"
|
android:id="@+id/item_task_title"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="350dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginStart="16dp"
|
android:layout_marginStart="16dp"
|
||||||
android:layout_marginTop="11dp"
|
android:layout_marginTop="11dp"
|
||||||
android:textSize="14sp"
|
android:ellipsize="end"
|
||||||
|
android:singleLine="true"
|
||||||
android:textColor="#FFFFFF"
|
android:textColor="#FFFFFF"
|
||||||
|
android:textSize="14sp"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:layout_constraintTop_toTopOf="parent" />
|
app:layout_constraintTop_toTopOf="parent" />
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user