|
|
@@ -227,7 +227,7 @@ public class ApprovalAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolde
|
|
|
holder.keyTv.setText(approval.getCaption());
|
|
|
holder.statusIV.setImageResource(reId);
|
|
|
AvatarHelper.getInstance().display(String.valueOf(approval.getId()), holder.handIv, true, false);
|
|
|
- if (reId == R.drawable.daishenpi && isApprovaling&&status.startsWith("等待")&&status.endsWith("审批")) {
|
|
|
+ if (reId == R.drawable.daishenpi && isApprovaling && status.startsWith("等待") && status.endsWith("审批")) {
|
|
|
holder.changeUser.setVisibility(View.VISIBLE);
|
|
|
holder.changeUser.setOnClickListener(new View.OnClickListener() {
|
|
|
@Override
|
|
|
@@ -301,7 +301,9 @@ public class ApprovalAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolde
|
|
|
if (approvals.get(position).getType() == Approval.ENCLOSURE) {//附件列表
|
|
|
holder.line.setVisibility(View.GONE);
|
|
|
holder.padding.setVisibility(View.GONE);
|
|
|
- holder.nameTv.setText(Html.fromHtml("      " + "<u>" + name + "</u>"));
|
|
|
+ holder.nameTv.setBackgroundResource(R.drawable.bg_enclosure);
|
|
|
+ holder.nameTv.setTextColor(ct.getResources().getColor(R.color.text_main));
|
|
|
+ holder.nameTv.setText(Html.fromHtml("      " + " " + name + "       "));
|
|
|
holder.nameTv.setOnClickListener(new View.OnClickListener() {
|
|
|
@Override
|
|
|
public void onClick(View v) {
|
|
|
@@ -309,6 +311,8 @@ public class ApprovalAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolde
|
|
|
}
|
|
|
});
|
|
|
} else {
|
|
|
+ holder.nameTv.setTextColor(ct.getResources().getColor(R.color.text_bule));
|
|
|
+ holder.nameTv.setBackgroundResource(0);
|
|
|
if (ListUtils.getSize(approvals) > position + 1 && position > 0) {//标题
|
|
|
if (approvals.get(position + 1).getType() == approvals.get(position - 1).getType()) {
|
|
|
holder.line.setVisibility(View.VISIBLE);
|
|
|
@@ -317,9 +321,9 @@ public class ApprovalAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolde
|
|
|
holder.line.setVisibility(View.GONE);
|
|
|
holder.padding.setVisibility(View.VISIBLE);
|
|
|
if (name.trim().equals("附件")) {
|
|
|
- holder.nameTv.setTextColor(ct.getResources().getColor(R.color.text_normal));
|
|
|
+ holder.nameTv.setTextColor(ct.getResources().getColor(R.color.text_bule));
|
|
|
} else {
|
|
|
- holder.nameTv.setTextColor(ct.getResources().getColor(R.color.titleBlue));
|
|
|
+ holder.nameTv.setTextColor(ct.getResources().getColor(R.color.text_bule));
|
|
|
if (!TextUtils.isEmpty(approvals.get(position).getValues())) {
|
|
|
holder.valuesRG.setOnCheckedChangeListener(null);
|
|
|
if (approvals.get(position).getValues().equals(Approval.VALUES_YES)) {
|
|
|
@@ -350,7 +354,6 @@ public class ApprovalAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolde
|
|
|
final CustomProgressDialog progressDialog = CustomProgressDialog.createDialog(ct);
|
|
|
progressDialog.setTitile("正在预览");
|
|
|
progressDialog.setMessage("正在生成附件预览,请勿关闭程序");
|
|
|
- LogUtil.i("gotoReadEnclosure");
|
|
|
if (!StringUtil.isEmpty(approval.getCaption())) {
|
|
|
if (isImage(approval.getCaption())) {
|
|
|
Intent intent = new Intent("com.modular.tool.SingleImagePreviewActivity");
|
|
|
@@ -378,6 +381,7 @@ public class ApprovalAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolde
|
|
|
@Override
|
|
|
public void onSuccess(final File file) {
|
|
|
LogUtil.i("onSuccess=" + (file == null ? "" : file.getPath()));
|
|
|
+ LogUtil.i("file isfile=" + (file.isFile()));
|
|
|
if (ct != null) {
|
|
|
if (progressDialog != null) {
|
|
|
progressDialog.dismiss();
|