mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-08 06:42:21 -04:00
Merge pull request #2840 from kiwix/Issue#2839
Fixed Mobile Network Permission Dialog not showing
This commit is contained in:
commit
e2f19a40e7
@ -156,10 +156,18 @@ class OnlineLibraryFragment : BaseFragment(), FragmentActivityExtensions {
|
|||||||
if (it) {
|
if (it) {
|
||||||
dialogShower.show(
|
dialogShower.show(
|
||||||
WifiOnly,
|
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
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -297,6 +297,7 @@
|
|||||||
<string name="all_files_permission_needed_message">In order to access all the zim files across device we need to have All Files Permission</string>
|
<string name="all_files_permission_needed_message">In order to access all the zim files across device we need to have All Files Permission</string>
|
||||||
<string name="allowed">Allowed</string>
|
<string name="allowed">Allowed</string>
|
||||||
<string name="not_allowed">Not allowed</string>
|
<string name="not_allowed">Not allowed</string>
|
||||||
|
<string name="denied_internet_permission_message">Please enable wifi to download content</string>
|
||||||
<string name="android_directory_seperator" translatable="false">/Android</string>
|
<string name="android_directory_seperator" translatable="false">/Android</string>
|
||||||
<string name="select_folder" translatable="false">Please select a folder for external storage.</string>
|
<string name="select_folder" translatable="false">Please select a folder for external storage.</string>
|
||||||
<string name="system_unable_to_grant_permission_message" translatable="false">System unable to grant permission!</string>
|
<string name="system_unable_to_grant_permission_message" translatable="false">System unable to grant permission!</string>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user