mirror of
https://github.com/gitnex-org/gitnex.git
synced 2026-03-22 21:13:45 -05:00
Fix showing labels twice
This commit is contained in:
@@ -170,6 +170,7 @@ public class IssueDetailActivity extends BaseActivity
|
||||
private int loadingFinished = 0;
|
||||
private MentionHelper mentionHelper;
|
||||
private boolean pullRequestFetchAttempted = false;
|
||||
private boolean issueInitialized = false;
|
||||
|
||||
private enum Mode {
|
||||
EDIT,
|
||||
@@ -1094,6 +1095,11 @@ public class IssueDetailActivity extends BaseActivity
|
||||
|
||||
private void initWithIssue() {
|
||||
|
||||
if (issueInitialized) {
|
||||
return;
|
||||
}
|
||||
issueInitialized = true;
|
||||
|
||||
if (!issue.getRepository().hasRepository()) {
|
||||
getRepoInfo();
|
||||
} else {
|
||||
@@ -1564,7 +1570,7 @@ public class IssueDetailActivity extends BaseActivity
|
||||
}
|
||||
|
||||
private void checkAndInitWithIssue() {
|
||||
if (loadingFinishedIssue || pullRequestFetchAttempted) {
|
||||
if ((loadingFinishedIssue || pullRequestFetchAttempted) && !issueInitialized) {
|
||||
initWithIssue();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -175,13 +175,14 @@ public class NotificationsAdapter extends RecyclerView.Adapter<RecyclerView.View
|
||||
type,
|
||||
ColorStateList.valueOf(
|
||||
context.getResources()
|
||||
.getColor(R.color.iconIssuePrClosedColor)));
|
||||
.getColor(R.color.iconIssuePrClosedColor, null)));
|
||||
break;
|
||||
case "merged":
|
||||
ImageViewCompat.setImageTintList(
|
||||
type,
|
||||
ColorStateList.valueOf(
|
||||
context.getResources().getColor(R.color.iconPrMergedColor)));
|
||||
context.getResources()
|
||||
.getColor(R.color.iconPrMergedColor, null)));
|
||||
break;
|
||||
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user