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()
|
initializeDependencies()
|
||||||
setupNavController()
|
setupNavController()
|
||||||
setupOrientation()
|
setupOrientation()
|
||||||
|
|
||||||
if (applicationContext.hasInternetPermission()) {
|
|
||||||
checkLocationPermission()
|
|
||||||
checkForUpdates()
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onPause() {
|
override fun onPause() {
|
||||||
@@ -285,6 +280,10 @@ class MainActivity : AppCompatActivity(), LocationListener {
|
|||||||
override fun onResume() {
|
override fun onResume() {
|
||||||
super.onResume()
|
super.onResume()
|
||||||
backToHomeScreen()
|
backToHomeScreen()
|
||||||
|
if (applicationContext.hasInternetPermission()) {
|
||||||
|
checkLocationPermission()
|
||||||
|
checkForUpdates()
|
||||||
|
}
|
||||||
setupDataBase()
|
setupDataBase()
|
||||||
observeUI()
|
observeUI()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user