mirror of https://codeberg.org/gitnex/GitNex.git
Fixes since 2.1.0 release, ms progress bar fix, create issue enable fix
This commit is contained in:
parent
45ec660ba1
commit
d9337a24d3
|
@ -237,6 +237,7 @@ public class MilestonesAdapter extends RecyclerView.Adapter<MilestonesAdapter.Mi
|
|||
|
||||
if (currentItem.getOpen_issues() == 0) {
|
||||
holder.msProgress.setProgress(100);
|
||||
holder.msProgress.setOnClickListener(new ClickListener(mCtx.getResources().getString(R.string.milestoneCompletion, 100), mCtx));
|
||||
}
|
||||
else {
|
||||
int msCompletion = 100 * currentItem.getClosed_issues() / (currentItem.getOpen_issues() + currentItem.getClosed_issues());
|
||||
|
|
|
@ -246,13 +246,8 @@ public class RepoInfoFragment extends Fragment {
|
|||
repoCloneUrlInfo.setText(repoInfo.getClone_url());
|
||||
repoRepoUrlInfo.setText(repoInfo.getHtml_url());
|
||||
repoForksCountInfo.setText(repoInfo.getForks_count());
|
||||
|
||||
if(repoInfo.getHas_issues()) {
|
||||
tinyDb.putBoolean("hasIssues", repoInfo.getHas_issues());
|
||||
}
|
||||
else {
|
||||
tinyDb.putBoolean("hasIssues", true);
|
||||
}
|
||||
|
||||
tinyDb.putBoolean("hasIssues", repoInfo.getHas_issues());
|
||||
|
||||
switch (timeFormat) {
|
||||
case "pretty": {
|
||||
|
|
|
@ -4,8 +4,8 @@
|
|||
|
||||
<item
|
||||
android:id="@android:id/background"
|
||||
android:top="4dp"
|
||||
android:bottom="4dp"
|
||||
android:top="2dp"
|
||||
android:bottom="2dp"
|
||||
android:right="1dp"
|
||||
android:left="1dp">
|
||||
<shape>
|
||||
|
@ -16,12 +16,12 @@
|
|||
|
||||
<item
|
||||
android:id="@android:id/progress"
|
||||
android:top="1dp"
|
||||
android:bottom="1dp"
|
||||
android:top="3dp"
|
||||
android:bottom="3dp"
|
||||
android:left="1dp"
|
||||
android:right="1dp">
|
||||
|
||||
<scale android:scaleWidth="100%" android:scaleHeight="80%">
|
||||
<scale android:scaleWidth="100%">
|
||||
<shape>
|
||||
<corners android:radius="15dp" />
|
||||
</shape>
|
||||
|
|
|
@ -67,7 +67,7 @@
|
|||
style="@style/Widget.AppCompat.ProgressBar.Horizontal"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="82"
|
||||
android:layout_weight="80"
|
||||
android:progress="50"
|
||||
android:layout_marginTop="2dp"
|
||||
android:progressDrawable="@drawable/progress_bar"
|
||||
|
|
Loading…
Reference in New Issue