修改中英文
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);
|
||||||
}
|
}
|
||||||
|
@ -1733,7 +1733,12 @@ public class LiveAudienceActivity extends LiveActivity {
|
|||||||
if (isShow) {
|
if (isShow) {
|
||||||
manager.mLiveAudienceViewHolder.mRedPointPrivilege.setVisibility(View.VISIBLE);
|
manager.mLiveAudienceViewHolder.mRedPointPrivilege.setVisibility(View.VISIBLE);
|
||||||
} else {
|
} else {
|
||||||
manager.mLiveAudienceViewHolder.mRedPointPrivilege.setVisibility(View.GONE);
|
if (IMLoginManager.get(mContext).getRedPoint()) {
|
||||||
|
manager.mLiveAudienceViewHolder.mRedPointPrivilege.setVisibility(View.VISIBLE);
|
||||||
|
}else {
|
||||||
|
manager.mLiveAudienceViewHolder.mRedPointPrivilege.setVisibility(View.GONE);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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;
|
||||||
@ -409,7 +410,7 @@ public class LiveAudienceViewHolder extends AbsLiveViewHolder {
|
|||||||
Bundle bundle = new Bundle();
|
Bundle bundle = new Bundle();
|
||||||
String url = newPeopleUrl + (newPeopleUrl.contains("?") ? "&" : "?") + "g=Appapi&m=Turntable&a=tricky";
|
String url = newPeopleUrl + (newPeopleUrl.contains("?") ? "&" : "?") + "g=Appapi&m=Turntable&a=tricky";
|
||||||
url += "&uid=" + CommonAppConfig.getInstance().getUid() + "&token="
|
url += "&uid=" + CommonAppConfig.getInstance().getUid() + "&token="
|
||||||
+ CommonAppConfig.getInstance().getToken() + "&anchorUid=" + mLiveUid+ "&isZh=" + (WordUtil.isNewZh() ? "1" : 0);
|
+ CommonAppConfig.getInstance().getToken() + "&anchorUid=" + mLiveUid + "&isZh=" + (WordUtil.isNewZh() ? "1" : 0);
|
||||||
bundle.putString("url", url);
|
bundle.putString("url", url);
|
||||||
bundle.putInt("show_type", 0);
|
bundle.putInt("show_type", 0);
|
||||||
//bundle.putInt("height", DpUtil.dp2px(1));
|
//bundle.putInt("height", DpUtil.dp2px(1));
|
||||||
@ -448,7 +449,7 @@ public class LiveAudienceViewHolder extends AbsLiveViewHolder {
|
|||||||
public void openZGListWindow() {
|
public void openZGListWindow() {
|
||||||
String url = CommonAppConfig.HOST + "/index.php?g=Appapi&m=Turntable&a=tricky";
|
String url = CommonAppConfig.HOST + "/index.php?g=Appapi&m=Turntable&a=tricky";
|
||||||
url += "&uid=" + CommonAppConfig.getInstance().getUid() + "&token="
|
url += "&uid=" + CommonAppConfig.getInstance().getUid() + "&token="
|
||||||
+ CommonAppConfig.getInstance().getToken() + "&anchorUid=" + mLiveUid+ "&isZh=" + (WordUtil.isNewZh() ? "1" : 0);
|
+ CommonAppConfig.getInstance().getToken() + "&anchorUid=" + mLiveUid + "&isZh=" + (WordUtil.isNewZh() ? "1" : 0);
|
||||||
Log.i("tag", url);
|
Log.i("tag", url);
|
||||||
Bundle bundle1 = new Bundle();
|
Bundle bundle1 = new Bundle();
|
||||||
bundle1.putString("url", url);
|
bundle1.putString("url", url);
|
||||||
@ -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