Fix: Fixed the hasInternetPermission stuff to run every time the app runs not just on install.

Signed-off-by: HeCodes2Much <wayne6324@gmail.com>
This commit is contained in:
HeCodes2Much
2024-06-17 12:02:04 +01:00
parent b6ee533a68
commit 9db3a6c55d

View File

@@ -115,11 +115,6 @@ class MainActivity : AppCompatActivity(), LocationListener {
initializeDependencies()
setupNavController()
setupOrientation()
if (applicationContext.hasInternetPermission()) {
checkLocationPermission()
checkForUpdates()
}
}
override fun onPause() {
@@ -285,6 +280,10 @@ class MainActivity : AppCompatActivity(), LocationListener {
override fun onResume() {
super.onResume()
backToHomeScreen()
if (applicationContext.hasInternetPermission()) {
checkLocationPermission()
checkForUpdates()
}
setupDataBase()
observeUI()
}