[UI] Add Pull & Release Counter Badge to TabLable #350
No reviewers
Labels
No Label
Priority-high
Accepting-merge-requests
API
API-dependency
Backport
Blocked
Brainstorming
Breaking
Bug
Changelog
CI
Cleanup
Confirmed
Discussion
Documentation
Duplicate
Enhancement
External-dependecy
F-droid
Feature
Google-play
Improvement
Invalid
Investigate
LGTM-done
LGTM-need
Long-term
Major-release
Minor-release
Needs-cleanup
Needs-feedback
Needs-help
Priority-critical
Priority-low
Priority-medium
Question
Ready
Refactor
Regression
Release
Repository
Security
Suggestion
Support
Testing
Translation
UI/UX
Upstream
Website
WIP
No Milestone
No Assignees
2 Participants
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: gitnex/GitNex#350
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "6543/GitNex:218-PR-Tab_OpenNumber"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
API has bug in master -> https://github.com/go-gitea/gitea/issues/10946
@ -134,3 +145,1 @@
@SuppressLint("InflateParams") View tabHeader = LayoutInflater.from(this).inflate(R.layout.badge, null);
textViewBadge = tabHeader.findViewById(R.id.counterBadge);
if(!tinyDb.getString("issuesCounter").isEmpty()) {
//if(!tinyDb.getString("issuesCounter").isEmpty()) {
No idea where is this value set?
It was there before ...
tinyDb.getString("issuesCounter").isEmpty()
don't know where is this set. So I disabled it for now as it counter will not work if this is enabled while switching from settings.@mmarif a code search show it is only used in this Line so I'll remove it ...
DONE
ok after your changes it stoped working - I'll look into it why it doesnt work anymore
Strange. Check settings if it's disabled?
@ -312,3 +345,3 @@
assert repoInfo != null;
textViewBadge.setText(repoInfo.getOpen_issues_count());
textViewBadgeIssue.setText(repoInfo.getOpen_issues_count());
This line is the culprit from my testing. It need to be inside if statement like others.
I'll fix it
@mmarif fixed it (
578283b10e
)@ -315,0 +350,4 @@
if(tinyDb.getBoolean("enableCounterBadges")) {
assert repoInfo != null;
if(repoInfo.getOpen_pull_count() != null) {
if(repoInfo.getOpen_pull_count() != null) {
typo error here. Suppose to begetOpen_issues_count()