mirror of
https://codeberg.org/gitnex/GitNex
synced 2024-12-24 17:41:35 +01:00
Merge pull request 'Fix of views being gone randomly' (#404) from 400-milestone-bug into master
Merging via app
This commit is contained in:
commit
008ffaa553
@ -249,7 +249,7 @@ public class MilestonesAdapter extends RecyclerView.Adapter<MilestonesAdapter.Mi
|
|||||||
holder.msDescription.setText(bodyWithMD);
|
holder.msDescription.setText(bodyWithMD);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
holder.msDescription.setVisibility(View.GONE);
|
holder.msDescription.setText("");
|
||||||
}
|
}
|
||||||
|
|
||||||
holder.msOpenIssues.setText(String.valueOf(currentItem.getOpen_issues()));
|
holder.msOpenIssues.setText(String.valueOf(currentItem.getOpen_issues()));
|
||||||
@ -304,13 +304,14 @@ public class MilestonesAdapter extends RecyclerView.Adapter<MilestonesAdapter.Mi
|
|||||||
} catch (ParseException e) {
|
} catch (ParseException e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
|
assert date1 != null;
|
||||||
String dueDate = formatter.format(date1);
|
String dueDate = formatter.format(date1);
|
||||||
holder.msDueDate.setText(mCtx.getResources().getString(R.string.dueDate, dueDate));
|
holder.msDueDate.setText(mCtx.getResources().getString(R.string.dueDate, dueDate));
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
holder.msDueDate.setVisibility(View.GONE);
|
holder.msDueDate.setText("");
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user