mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-08-03 10:46:53 -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) {
|
||||
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
|
||||
}
|
||||
})
|
||||
|
||||
|
@ -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="allowed">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="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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user