1
0
Fork 0
mirror of https://github.com/TeamNewPipe/NewPipe.git synced 2025-10-04 18:29:26 +02:00

Migrate CheckForNewAppVersion to Worker (and rename it)

This commit is contained in:
TacoTheDank 2022-03-03 13:26:57 -05:00
parent 81fef1be19
commit 71f141f3f8
5 changed files with 27 additions and 22 deletions

View file

@ -173,10 +173,9 @@ public class MainActivity extends AppCompatActivity {
final SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(app);
if (prefs.getBoolean(app.getString(R.string.update_app_key), true)) {
// Start the service which is checking all conditions
// Start the worker which is checking all conditions
// and eventually searching for a new version.
// The service searching for a new NewPipe version must not be started in background.
CheckForNewAppVersion.startNewVersionCheckService(app);
NewVersionWorker.enqueueNewVersionCheckingWork(app);
}
}