diff --git a/app/src/main/java/org/lineageos/glimpse/fragments/AlbumFragment.kt b/app/src/main/java/org/lineageos/glimpse/fragments/AlbumFragment.kt index ab1daf0..a212c54 100644 --- a/app/src/main/java/org/lineageos/glimpse/fragments/AlbumFragment.kt +++ b/app/src/main/java/org/lineageos/glimpse/fragments/AlbumFragment.kt @@ -60,7 +60,7 @@ class AlbumFragment : Fragment(R.layout.fragment_album), LoaderManager.LoaderCal if (it.isNotEmpty()) { if (!permissionsUtils.mainPermissionsGranted()) { Toast.makeText( - requireContext(), "No main permissions", Toast.LENGTH_SHORT + requireContext(), R.string.app_permissions_toast, Toast.LENGTH_SHORT ).show() requireActivity().finish() } else { diff --git a/app/src/main/java/org/lineageos/glimpse/fragments/MediaViewerFragment.kt b/app/src/main/java/org/lineageos/glimpse/fragments/MediaViewerFragment.kt index bdbf8b6..7bed8ed 100644 --- a/app/src/main/java/org/lineageos/glimpse/fragments/MediaViewerFragment.kt +++ b/app/src/main/java/org/lineageos/glimpse/fragments/MediaViewerFragment.kt @@ -75,7 +75,7 @@ class MediaViewerFragment : Fragment( if (it.isNotEmpty()) { if (!permissionsUtils.mainPermissionsGranted()) { Toast.makeText( - requireContext(), "No main permissions", Toast.LENGTH_SHORT + requireContext(), R.string.app_permissions_toast, Toast.LENGTH_SHORT ).show() requireActivity().finish() } else { diff --git a/app/src/main/java/org/lineageos/glimpse/fragments/ReelsFragment.kt b/app/src/main/java/org/lineageos/glimpse/fragments/ReelsFragment.kt index 80b0e8e..e719535 100644 --- a/app/src/main/java/org/lineageos/glimpse/fragments/ReelsFragment.kt +++ b/app/src/main/java/org/lineageos/glimpse/fragments/ReelsFragment.kt @@ -55,7 +55,7 @@ class ReelsFragment : Fragment(R.layout.fragment_reels), LoaderManager.LoaderCal if (it.isNotEmpty()) { if (!permissionsUtils.mainPermissionsGranted()) { Toast.makeText( - requireContext(), "No main permissions", Toast.LENGTH_SHORT + requireContext(), R.string.app_permissions_toast, Toast.LENGTH_SHORT ).show() requireActivity().finish() } else { diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 00b1834..f8622b7 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -6,6 +6,9 @@ Gallery + + Permissions not granted by the user. + Edit More