侧边栏修改
This commit is contained in:
parent
383e8c0859
commit
85971339d4
@ -10,6 +10,8 @@ import androidx.recyclerview.widget.RecyclerView;
|
|||||||
|
|
||||||
import com.yunbao.common.R;
|
import com.yunbao.common.R;
|
||||||
import com.yunbao.common.bean.CustomSidebarChildModel;
|
import com.yunbao.common.bean.CustomSidebarChildModel;
|
||||||
|
import com.yunbao.common.event.CustomDrawerPopupEvent;
|
||||||
|
import com.yunbao.common.utils.Bus;
|
||||||
import com.yunbao.common.views.DrawerTaskChildViewHolder;
|
import com.yunbao.common.views.DrawerTaskChildViewHolder;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
@ -38,9 +40,8 @@ public class DrawerTaskAdapter extends RecyclerView.Adapter {
|
|||||||
@Override
|
@Override
|
||||||
public void giftSuccess(CustomSidebarChildModel model, int index) {
|
public void giftSuccess(CustomSidebarChildModel model, int index) {
|
||||||
//将领取的任务移动至任务列表尾部
|
//将领取的任务移动至任务列表尾部
|
||||||
child.remove(index);
|
Bus.get().post(new CustomDrawerPopupEvent()
|
||||||
child.add(child.size() - 1, model);
|
.setDisMiss(false).setRefresh(true));
|
||||||
notifyDataSetChanged();
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -19,6 +19,17 @@ public class CustomDrawerPopupEvent extends BaseModel {
|
|||||||
private boolean online = false;
|
private boolean online = false;
|
||||||
//举报
|
//举报
|
||||||
private boolean reportLayout = false;
|
private boolean reportLayout = false;
|
||||||
|
//刷新
|
||||||
|
private boolean refresh = false;
|
||||||
|
|
||||||
|
public boolean isRefresh() {
|
||||||
|
return refresh;
|
||||||
|
}
|
||||||
|
|
||||||
|
public CustomDrawerPopupEvent setRefresh(boolean refresh) {
|
||||||
|
this.refresh = refresh;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
public boolean isSystemNotice() {
|
public boolean isSystemNotice() {
|
||||||
return systemNotice;
|
return systemNotice;
|
||||||
|
@ -219,6 +219,10 @@ public class CustomDrawerPopupView extends DrawerPopupView {
|
|||||||
dismiss();
|
dismiss();
|
||||||
callBack.reportLayout();
|
callBack.reportLayout();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
if (event.isRefresh()) {
|
||||||
|
initData();
|
||||||
}
|
}
|
||||||
//是否关闭弹窗
|
//是否关闭弹窗
|
||||||
if (event.isDisMiss()) {
|
if (event.isDisMiss()) {
|
||||||
|
@ -62,7 +62,7 @@ public class VoiceDialog extends AbsDialogFragment {
|
|||||||
|
|
||||||
public String sendMessage() {
|
public String sendMessage() {
|
||||||
|
|
||||||
return voiceChat.getText().toString();
|
return WordsTypeUtil.changeTraditional(builder.toString());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user