Fix: Fixed the withoutInternet build from trying to find new build.

Signed-off-by: HeCodes2Much <wayne6324@gmail.com>
This commit is contained in:
HeCodes2Much
2024-07-06 17:08:23 +01:00
parent 9b007b82e4
commit b830eedfd6

View File

@@ -23,6 +23,7 @@ import androidx.lifecycle.lifecycleScope
import androidx.navigation.NavOptions
import androidx.navigation.fragment.findNavController
import androidx.recyclerview.widget.StaggeredGridLayoutManager
import com.github.droidworksstudio.common.hasInternetPermission
import com.github.droidworksstudio.common.hideKeyboard
import com.github.droidworksstudio.common.launchApp
import com.github.droidworksstudio.common.launchCalendar
@@ -110,8 +111,10 @@ class HomeFragment : Fragment(),
observeSwipeTouchListener()
observeUserInterfaceSettings()
updateManager = UpdateManagerHelper(this)
updateManager.checkForUpdates()
if (context.hasInternetPermission()) {
updateManager = UpdateManagerHelper(this)
updateManager.checkForUpdates()
}
}
@SuppressLint("ClickableViewAccessibility")
@@ -486,7 +489,9 @@ class HomeFragment : Fragment(),
observeUserInterfaceSettings()
observeFavoriteAppList()
updateManager.checkForUpdates()
if (context.hasInternetPermission()) {
updateManager.checkForUpdates()
}
}
override fun onAppClicked(appInfo: AppInfo) {