Refactor commits #452

Merged
6543 merged 10 commits from 440-refactor-commits into master 2020-04-26 22:59:16 +00:00
Owner

Closes #440

Right now it will crash for whatever reason of using ?attr/ which is really annoying.

I had this issue last time, can't remember how I fixed it.

If you remove the custom attr from list_commits.xml, it will work. Atleast it's the case on my side.

Edit: fixed the crash.

Closes #440 Right now it will crash for whatever reason of using `?attr/` which is really annoying. I had this issue last time, can't remember how I fixed it. If you remove the custom attr from list_commits.xml, it will work. Atleast it's the case on my side. **Edit: fixed the crash.**
mmarif added this to the 3.0.0 milestone 2020-04-24 23:04:17 +00:00
mmarif added the
Refactor
label 2020-04-24 23:04:17 +00:00
mmarif self-assigned this 2020-04-24 23:04:17 +00:00
mmarif added the
Needs-cleanup
label 2020-04-25 07:15:57 +00:00
mmarif added
LGTM-need
Improvement
and removed
Needs-cleanup
labels 2020-04-26 09:35:58 +00:00
6543 reviewed 2020-04-26 13:45:21 +00:00
Dismissed
@ -99,2 +92,2 @@
fastItemAdapter = new FastItemAdapter<>();
fastItemAdapter.withSelectable(true);
// if gitea is 1.12 or higher use the new limit (resultLimitNewGiteaInstances)
if(VersionCheck.compareVersion("1.12.0", tinyDb.getString("giteaVersion")) < 1) {

= 1 - yes I know ... refactor income

>= 1 - yes I know ... refactor income
Author
Owner

You mean this < 1 should be = 1?

In that case I have do it in pr and issue also.

You mean this `< 1` should be `= 1`? In that case I have do it in pr and issue also.
     * 0 = less
     * 1 = same
     * 2 = more
``` * 0 = less * 1 = same * 2 = more ```
Author
Owner

Fixed by 6e8160514c

Fixed by https://gitea.com/gitnex/GitNex/commit/6e8160514c90f338ed007d63362566b59fff5e17
6543 requested changes 2020-04-26 13:47:36 +00:00
Dismissed
6543 left a comment
Member

one nit

one nit
6543 approved these changes 2020-04-26 21:20:45 +00:00
Dismissed
Member
@mmarif -> 5807faed81138e48887813d95199c3f401aec469
6543 added
LGTM-done
and removed
LGTM-need
labels 2020-04-26 21:22:06 +00:00
Member

@mmarif

Right now it will crash for whatever reason of using ?attr/ which is really annoying.

I know this may be too late, but i think youre passing the wrong context to the adapter when using getApplicationContext().

new CommitsAdapter(getApplicationContext())

Try passing CommitsActivity.this instead. It should work fine.

@mmarif > Right now it will crash for whatever reason of using ?attr/ which is really annoying. I know this may be too late, but i think youre passing the wrong context to the adapter when using getApplicationContext(). ``` new CommitsAdapter(getApplicationContext()) ``` Try passing ``CommitsActivity.this`` instead. It should work fine.
Author
Owner

I know this may be too late, but i think youre passing the wrong context to the adapter when using getApplicationContext().

Yes, that's true I was passing the wrong context. Sometime just too many things to take care of. 😄

> I know this may be too late, but i think youre passing the wrong context to the adapter when using getApplicationContext(). Yes, that's true I was passing the wrong context. Sometime just too many things to take care of. :smile:
Author
Owner

@mmarif -> 5807faed81

I saw you used < in somewhere, I guess in the mainactivity. That should also be changed?

> @mmarif -> 5807faed81 I saw you used `<` in somewhere, I guess in the mainactivity. That should also be changed?
Member

@mmarif THIS is a other task - I'll look at all version checks in my refactor - just give me some time - I have a longer and longer ToDo list :(

this here is ready so I'll merge 🚀

@mmarif THIS is a other task - I'll look at all version checks in my refactor - just give me some time - I have a longer and longer ToDo list :( this here is ready so I'll merge :rocket:
6543 merged commit 195bfc8fe2 into master 2020-04-26 22:59:12 +00:00
6543 deleted branch 440-refactor-commits 2020-04-26 22:59:20 +00:00
This repo is archived. You cannot comment on pull requests.
No reviewers
No Milestone
No Assignees
3 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#452
No description provided.