From 2b3edcf2d1eb8601ebf3a213c9f9f24eef4278e8 Mon Sep 17 00:00:00 2001 From: Tobi Date: Sat, 2 Oct 2021 08:53:03 +0200 Subject: [PATCH] Add a comment --- .../java/org/schabi/newpipe/settings/UpdateSettingsFragment.java | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/java/org/schabi/newpipe/settings/UpdateSettingsFragment.java b/app/src/main/java/org/schabi/newpipe/settings/UpdateSettingsFragment.java index 70f73e4f1..d2f56b487 100644 --- a/app/src/main/java/org/schabi/newpipe/settings/UpdateSettingsFragment.java +++ b/app/src/main/java/org/schabi/newpipe/settings/UpdateSettingsFragment.java @@ -15,6 +15,7 @@ public class UpdateSettingsFragment extends BasePreferenceFragment { .putBoolean(getString(R.string.update_app_key), (boolean) checkForUpdates).apply(); if ((boolean) checkForUpdates) { + // Search for updates immediately when update checks are enabled. // Reset the expire time. This is necessary to check for an update immediately. defaultPreferences.edit() .putLong(getString(R.string.update_expiry_key), 0).apply();