Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

resets the expire date for checking for updates #6980

Merged

Conversation

evermind-zz
Copy link
Contributor

@evermind-zz evermind-zz commented Aug 26, 2021

check immediately for updates if user enables 'check for updates setting'

What is it?

  • Bugfix (user facing)
  • Feature (user facing)
  • Codebase improvement (dev facing)
  • Meta improvement to the project (dev facing)

Description of the changes in your PR

  • reset the expire date on enable 'check for update setting"
  • check immediately for updates if user enables 'check for updates setting'

Fixes the following issue(s)

APK testing

The APK can be found by going to the "Checks" tab below the title. On the left pane, click on "CI", scroll down to "artifacts" and click "app" to download the zip file which contains the debug APK of this PR.

Due diligence

@TobiGr
Copy link
Member

TobiGr commented Aug 26, 2021

Why do you want to force an update check after restarting the app?

I think it makes sense to reset the value. However, I think NewPipe should search for updates immediately once the option was enabled.

@evermind-zz
Copy link
Contributor Author

Why do you want to force an update check after restarting the app?

I think it makes sense to reset the value. However, I think NewPipe should search for updates immediately once the option was enabled.

sorry. I think I missed the point.
The actual behaviour is - if I recall correctly - that it is checked on app start only if the http expire header is exceeded.
With this pull-request resetting the expired timer will only force checking for new versions on restart. For me this is
good enough and very simple.

But I agree that the best way would be toggle the on/off button and then check immediately. If you would consider your idea as an mergeable pull-request I will redo the patch.

@TobiGr
Copy link
Member

TobiGr commented Aug 26, 2021

I'd merge that improvement. Go ahead :)

@evermind-zz evermind-zz force-pushed the check-for-update-after-toggle-and-restart branch from e9009cb to 5a60885 Compare August 29, 2021 06:40
@evermind-zz
Copy link
Contributor Author

I'd merge that improvement. Go ahead :)

done! please review. Thank you

@Stypox
Copy link
Member

Stypox commented Aug 30, 2021

@evermind-zz there is no need to strikethrough the description words you removed, it just makes reading more difficult and GitHub already takes care of keeping track of the history (click on the "edited" menu)

@evermind-zz
Copy link
Contributor Author

@evermind-zz there is no need to strikethrough the description words you removed, it just makes reading more difficult and GitHub already takes care of keeping track of the history (click on the "edited" menu)

thx for that! I've changed it

@evermind-zz evermind-zz force-pushed the check-for-update-after-toggle-and-restart branch from 7d5ebd6 to 66377bd Compare September 1, 2021 06:07
Copy link
Member

@TobiGr TobiGr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@evermind-zz evermind-zz force-pushed the check-for-update-after-toggle-and-restart branch from 5acf990 to 668d488 Compare September 1, 2021 09:35
…ing'

- Convert CheckForNewAppVersion to IntentService
- reset expire date to 0 after user enables check for updates setting
@evermind-zz evermind-zz force-pushed the check-for-update-after-toggle-and-restart branch from 668d488 to 669a35b Compare September 2, 2021 05:21
@evermind-zz
Copy link
Contributor Author

Could I please request someone to finally pull this pull request? As all outstanding issues are fixed. Thank you

@litetex
Copy link
Member

litetex commented Oct 1, 2021

@Stypox @TobiGr
What's the state here?

TobiGr
TobiGr previously approved these changes Oct 2, 2021
Copy link
Member

@TobiGr TobiGr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, I was busy the last weeks.

@TobiGr TobiGr merged commit ce592f4 into TeamNewPipe:dev Oct 2, 2021
This was referenced Oct 2, 2021
@evermind-zz evermind-zz deleted the check-for-update-after-toggle-and-restart branch October 2, 2021 22:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants