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:
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user