1
0
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:
M M Arif 2020-04-13 10:40:05 +00:00
commit 008ffaa553

View File

@ -249,7 +249,7 @@ public class MilestonesAdapter extends RecyclerView.Adapter<MilestonesAdapter.Mi
holder.msDescription.setText(bodyWithMD);
}
else {
holder.msDescription.setVisibility(View.GONE);
holder.msDescription.setText("");
}
holder.msOpenIssues.setText(String.valueOf(currentItem.getOpen_issues()));
@ -304,13 +304,14 @@ public class MilestonesAdapter extends RecyclerView.Adapter<MilestonesAdapter.Mi
} catch (ParseException e) {
e.printStackTrace();
}
assert date1 != null;
String dueDate = formatter.format(date1);
holder.msDueDate.setText(mCtx.getResources().getString(R.string.dueDate, dueDate));
}
}
else {
holder.msDueDate.setVisibility(View.GONE);
holder.msDueDate.setText("");
}
}