Fixes since 2.1.0 release, ms progress bar fix, create issue enable fix

This commit is contained in:
M M Arif 2019-10-01 22:45:21 +05:00
parent 45ec660ba1
commit d9337a24d3
4 changed files with 9 additions and 13 deletions

View File

@ -237,6 +237,7 @@ public class MilestonesAdapter extends RecyclerView.Adapter<MilestonesAdapter.Mi
if (currentItem.getOpen_issues() == 0) { if (currentItem.getOpen_issues() == 0) {
holder.msProgress.setProgress(100); holder.msProgress.setProgress(100);
holder.msProgress.setOnClickListener(new ClickListener(mCtx.getResources().getString(R.string.milestoneCompletion, 100), mCtx));
} }
else { else {
int msCompletion = 100 * currentItem.getClosed_issues() / (currentItem.getOpen_issues() + currentItem.getClosed_issues()); int msCompletion = 100 * currentItem.getClosed_issues() / (currentItem.getOpen_issues() + currentItem.getClosed_issues());

View File

@ -247,12 +247,7 @@ public class RepoInfoFragment extends Fragment {
repoRepoUrlInfo.setText(repoInfo.getHtml_url()); repoRepoUrlInfo.setText(repoInfo.getHtml_url());
repoForksCountInfo.setText(repoInfo.getForks_count()); repoForksCountInfo.setText(repoInfo.getForks_count());
if(repoInfo.getHas_issues()) { tinyDb.putBoolean("hasIssues", repoInfo.getHas_issues());
tinyDb.putBoolean("hasIssues", repoInfo.getHas_issues());
}
else {
tinyDb.putBoolean("hasIssues", true);
}
switch (timeFormat) { switch (timeFormat) {
case "pretty": { case "pretty": {

View File

@ -4,8 +4,8 @@
<item <item
android:id="@android:id/background" android:id="@android:id/background"
android:top="4dp" android:top="2dp"
android:bottom="4dp" android:bottom="2dp"
android:right="1dp" android:right="1dp"
android:left="1dp"> android:left="1dp">
<shape> <shape>
@ -16,12 +16,12 @@
<item <item
android:id="@android:id/progress" android:id="@android:id/progress"
android:top="1dp" android:top="3dp"
android:bottom="1dp" android:bottom="3dp"
android:left="1dp" android:left="1dp"
android:right="1dp"> android:right="1dp">
<scale android:scaleWidth="100%" android:scaleHeight="80%"> <scale android:scaleWidth="100%">
<shape> <shape>
<corners android:radius="15dp" /> <corners android:radius="15dp" />
</shape> </shape>

View File

@ -67,7 +67,7 @@
style="@style/Widget.AppCompat.ProgressBar.Horizontal" style="@style/Widget.AppCompat.ProgressBar.Horizontal"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="82" android:layout_weight="80"
android:progress="50" android:progress="50"
android:layout_marginTop="2dp" android:layout_marginTop="2dp"
android:progressDrawable="@drawable/progress_bar" android:progressDrawable="@drawable/progress_bar"