[UI] Add Pull & Release Counter Badge to TabLable #350

Merged
mmarif merged 10 commits from 6543/GitNex:218-PR-Tab_OpenNumber into master 2020-04-04 19:20:30 +00:00
Member
* close #218 | [Extend] Pull Request Tab: show open number * [Extend] Release Request Tab: show open number API has bug in master -> https://github.com/go-gitea/gitea/issues/10946 * Upgrade Gradle and a nit
6543 added this to the 2.5.0 milestone 2020-04-04 01:38:44 +00:00
6543 added the
Enhancement
UI/UX
LGTM-need
labels 2020-04-04 01:38:44 +00:00
mmarif reviewed 2020-04-04 12:17:30 +00:00
Dismissed
@ -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?

No idea where is this value set?
Author
Member

It was there before ...

It was there before ...
Owner

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.

`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.
Author
Member

@mmarif a code search show it is only used in this Line so I'll remove it ...

@mmarif a code search show it is only used in this Line so I'll remove it ...
Author
Member

DONE

DONE
Author
Member

ok after your changes it stoped working - I'll look into it why it doesnt work anymore

ok after your changes it stoped working - I'll look into it why it doesnt work anymore
Owner

Strange. Check settings if it's disabled?

Strange. Check settings if it's disabled?
mmarif reviewed 2020-04-04 16:09:42 +00:00
Dismissed
@ -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.

This line is the culprit from my testing. It need to be inside if statement like others.
Author
Member

I'll fix it

I'll fix it
Author
Member

@mmarif fixed it (578283b10e)

@mmarif fixed it (578283b10eb991396eaf0db3f595bfac46003dbd)
mmarif reviewed 2020-04-04 16:23:13 +00:00
Dismissed
@ -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 be getOpen_issues_count()

`if(repoInfo.getOpen_pull_count() != null) {` typo error here. Suppose to be `getOpen_issues_count()`
6543 added a new dependency 2020-04-04 17:16:52 +00:00
mmarif approved these changes 2020-04-04 19:11:33 +00:00
Dismissed
mmarif added
LGTM-done
and removed
LGTM-need
labels 2020-04-04 19:11:48 +00:00
6543 removed a dependency 2020-04-04 19:18:58 +00:00
mmarif closed this pull request 2020-04-04 19:20:30 +00:00
6543 deleted branch 218-PR-Tab_OpenNumber 2020-04-04 19:22:01 +00:00
This repo is archived. You cannot comment on pull requests.
No reviewers
No Milestone
No Assignees
2 Participants
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: gitnex/GitNex#350
No description provided.