|
@@ -910,17 +910,27 @@ class ModeEntranceActivity : CommonBindingActivity<ActivityModeEntranceBinding>(
|
|
|
}
|
|
|
|
|
|
EntranceType.download_new_recipes -> {
|
|
|
- if (FoodDataProvider.checkDataExit()) {
|
|
|
- val bundle = Bundle()
|
|
|
- bundle.putInt(MODE_ENTRANCE, Recipes)
|
|
|
- bundle.putInt(RECIPES_TYPE, NetFood)
|
|
|
- bundle.putString(HOME_TITLE, title)
|
|
|
- navigateTo(Screens.Main.HOME) {
|
|
|
- with(bundle)
|
|
|
+
|
|
|
+ if (NetworkUtils.isWifiConnected()) {
|
|
|
+ if (!AppVersionUtil.dialogRecipeUpdate.isShow) {
|
|
|
+ AppVersionUtil.checkAboutRecipeUpdate(true)
|
|
|
}
|
|
|
} else {
|
|
|
- showLoading()
|
|
|
+ GlobalToast.showToast(getString(com.develop.common.R.string.network_error))
|
|
|
+
|
|
|
}
|
|
|
+
|
|
|
+// if (FoodDataProvider.checkDataExit()) {
|
|
|
+// val bundle = Bundle()
|
|
|
+// bundle.putInt(MODE_ENTRANCE, Recipes)
|
|
|
+// bundle.putInt(RECIPES_TYPE, NetFood)
|
|
|
+// bundle.putString(HOME_TITLE, title)
|
|
|
+// navigateTo(Screens.Main.HOME) {
|
|
|
+// with(bundle)
|
|
|
+// }
|
|
|
+// } else {
|
|
|
+// showLoading()
|
|
|
+// }
|
|
|
}
|
|
|
}
|
|
|
}
|