diff --git a/app/src/main/java/org/kiwix/kiwixmobile/nav/destination/library/OnlineLibraryFragment.kt b/app/src/main/java/org/kiwix/kiwixmobile/nav/destination/library/OnlineLibraryFragment.kt index c2339222b..e8de0ea18 100644 --- a/app/src/main/java/org/kiwix/kiwixmobile/nav/destination/library/OnlineLibraryFragment.kt +++ b/app/src/main/java/org/kiwix/kiwixmobile/nav/destination/library/OnlineLibraryFragment.kt @@ -156,10 +156,18 @@ class OnlineLibraryFragment : BaseFragment(), FragmentActivityExtensions { if (it) { dialogShower.show( WifiOnly, - { sharedPreferenceUtil.putPrefWifiOnly(false) }, - { onRefreshStateChange(false) } + { + sharedPreferenceUtil.putPrefWifiOnly(false) + zimManageViewModel.shouldShowWifiOnlyDialog.value = false + }, + { + onRefreshStateChange(false) + context.toast( + resources.getString(R.string.denied_internet_permission_message), + Toast.LENGTH_SHORT + ) + } ) - zimManageViewModel.shouldShowWifiOnlyDialog.value = false } }) diff --git a/core/src/main/res/values/strings.xml b/core/src/main/res/values/strings.xml index db9001289..6bf635b4e 100644 --- a/core/src/main/res/values/strings.xml +++ b/core/src/main/res/values/strings.xml @@ -297,6 +297,7 @@ In order to access all the zim files across device we need to have All Files Permission Allowed Not allowed + Please enable wifi to download content /Android Please select a folder for external storage. System unable to grant permission!