修复遮罩问题

This commit is contained in:
18401019693 2022-09-06 15:53:42 +08:00
parent 38e85d20a4
commit 9b3483457f
6 changed files with 25 additions and 8 deletions

View File

@ -102,7 +102,7 @@ public class InstructorOperationDialog extends AbsDialogFragment {
ImgLoader.display(mContext,home_zdy_img_cn, to_msg);
}
NoviceInstructorManager.get(getActivity()).setHomeZdyPop("");
mRootView.findViewById(R.id.to_msg).setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {

View File

@ -6,4 +6,5 @@ import com.yunbao.common.bean.BaseModel;
* 新人面向指导员的跳转弹窗
*/
public class InstructorOperationEvent extends BaseModel {
}

View File

@ -45,6 +45,11 @@ public class NoviceInstructorManager extends BaseCacheManager {
return this;
}
public String getHomeZdyPop() {
return homeZdyPop;
}
/**
* 呼出指导员引导弹窗
*
@ -52,7 +57,7 @@ public class NoviceInstructorManager extends BaseCacheManager {
*/
public NoviceInstructorManager setHomeZdyPop(String homeZdyPop) {
this.homeZdyPop = homeZdyPop;
netHandler.post(instructorOperationOpenRunnable);
netHandler.postDelayed(instructorOperationOpenRunnable,800);
return this;
}
@ -61,7 +66,7 @@ public class NoviceInstructorManager extends BaseCacheManager {
*/
public void checktHomeZdyPop() {
if (!TextUtils.isEmpty(homeZdyPop) && TextUtils.equals(homeZdyPop, "1") && !isFrist) {
netHandler.post(instructorOperationOpenRunnable);
netHandler.postDelayed(instructorOperationOpenRunnable,800);
}
}
@ -87,7 +92,7 @@ public class NoviceInstructorManager extends BaseCacheManager {
model = new Gson().fromJson(getString(KEY_NOVICE_INSTRUCTOR), NoviceInstructorModel.class);
} else {
netHandler.post(instructorOperationRunnable);
netHandler.postDelayed(instructorOperationRunnable, 1000);
}
return model;
}
@ -142,7 +147,7 @@ public class NoviceInstructorManager extends BaseCacheManager {
model = new Gson().fromJson(info, NoviceInstructorModel.class);
setNoviceInstructor(model);
if (model != null) {
netHandler.post(instructorOperationRunnable);
netHandler.postDelayed(instructorOperationRunnable, 800);
}
} catch (JsonSyntaxException ignored) {
}

View File

@ -264,7 +264,7 @@ public class PDLiveConversationActivity extends AbsActivity implements View.OnCl
RongIMClient.getInstance().getTextMessageDraft(Conversation.ConversationType.PRIVATE, targetId, new RongIMClient.ResultCallback<String>() {
@Override
public void onSuccess(String s) {
if (!TextUtils.isEmpty(inputPanel.getPresetInformation()))
if (!TextUtils.isEmpty(s))
inputPanel.setPresetInformation(s);
}

View File

@ -1286,6 +1286,7 @@ public class MainActivity extends AbsActivity implements MainAppBarLayoutListene
Bundle bundle = new Bundle();
bundle.putInt(PDLiveConversationListActivity.MESSAGENUMBER, messageNumber);
bundle.putInt(PDLiveConversationListActivity.NUMBERME, numberMe);
bundle.putString(PDLiveConversationListActivity.POP, NoviceInstructorManager.get(this).getHomeZdyPop());
ConversationIMListManager.get(mContext).jumpConversationList(bundle);
}

View File

@ -40,6 +40,7 @@ import com.yunbao.common.glide.ImgLoader;
import com.yunbao.common.http.HttpCallback;
import com.yunbao.common.http.live.LiveNetManager;
import com.yunbao.common.manager.IMLoginManager;
import com.yunbao.common.manager.NoviceInstructorManager;
import com.yunbao.common.manager.imrongcloud.MessageIMManager;
import com.yunbao.common.utils.DeviceUtils;
import com.yunbao.common.utils.DialogUitl;
@ -81,7 +82,7 @@ import static com.yunbao.common.CommonAppContext.isReady;
public class PDLiveConversationListActivity extends AbsActivity implements View.OnClickListener {
//菜单
private TabButtonGroup mTabButtonGroup;
public static String CLASSNAME = "PDLiveConversationListActivity", MESSAGENUMBER = "messageNumber", NUMBERME = "numberMe";
public static String CLASSNAME = "PDLiveConversationListActivity", MESSAGENUMBER = "messageNumber", NUMBERME = "numberMe", POP = "pop";
private PDLiveConversationListActivity mContext;
private ConversationListFragment conversationListFragment;
private FrameLayout container;
@ -199,9 +200,15 @@ public class PDLiveConversationListActivity extends AbsActivity implements View.
container.post(new Runnable() {
@Override
public void run() {
// showGuideView();
String homeZdyPop = getIntent().getStringExtra(POP);
if (TextUtils.equals(homeZdyPop, "1")) {
showGuideView();
NoviceInstructorManager.get(mContext).setHomeZdyPop("");
}
}
});
}
private void showStartDialog() {
@ -591,6 +598,7 @@ public class PDLiveConversationListActivity extends AbsActivity implements View.
MessageIMManager.get(mContext).setSystemNumber(systemNumber);
}
@Subscribe(threadMode = ThreadMode.MAIN)
public void onRecommendLiveRoomEvent(RecommendLiveRoomEvent event) {
LiveHttpUtil.getLiveInfo(event.getLiveuid(), new HttpCallback() {
@ -611,4 +619,6 @@ public class PDLiveConversationListActivity extends AbsActivity implements View.
}
});
}
}