Change the strings text for wirte_external_permissions and set them as android string resource
This commit is contained in:
parent
2e13b16a71
commit
9a75330207
3 changed files with 4 additions and 2 deletions
|
@ -207,7 +207,7 @@ public class BackupsSettingsFragment extends Fragment{
|
|||
private void requestPermission() {
|
||||
|
||||
if (ActivityCompat.shouldShowRequestPermissionRationale(getActivity(), android.Manifest.permission.WRITE_EXTERNAL_STORAGE)) {
|
||||
Toast.makeText(getActivity(), "Write External Storage permission allows us to do store images. Please allow this permission in App Settings.", Toast.LENGTH_LONG).show();
|
||||
Toast.makeText(getActivity(), getActivity().getResources().getString(R.string.Permision_storage), Toast.LENGTH_LONG).show();
|
||||
} else {
|
||||
ActivityCompat.requestPermissions(getActivity(), new String[]{android.Manifest.permission.WRITE_EXTERNAL_STORAGE}, PERMISSION_REQUEST_CODE);
|
||||
}
|
||||
|
|
|
@ -211,7 +211,7 @@ public class ImportAccountOptionsFragment extends DialogFragment {
|
|||
Log.i("log", "requestPermission() entered");
|
||||
|
||||
if (ActivityCompat.shouldShowRequestPermissionRationale(getActivity(), android.Manifest.permission.WRITE_EXTERNAL_STORAGE)) {
|
||||
Toast.makeText(getActivity(), "Write External Storage permission allows us to do store images. Please allow this permission in App Settings.", Toast.LENGTH_LONG).show();
|
||||
Toast.makeText(getActivity(), getActivity().getResources().getString(R.string.Permision_storage), Toast.LENGTH_LONG).show();
|
||||
} else {
|
||||
// ActivityCompat.requestPermissions(getActivity(), new String[]{android.Manifest.permission.WRITE_EXTERNAL_STORAGE}, PERMISSION_REQUEST_CODE);
|
||||
requestPermissions(new String[] {android.Manifest.permission.WRITE_EXTERNAL_STORAGE}, PERMISSION_REQUEST_CODE);
|
||||
|
|
|
@ -18,6 +18,8 @@
|
|||
<string name="You_dont_have_transactions">You dont have transactions</string>
|
||||
<string name="You_dont_have_contacts">You dont have contacts</string>
|
||||
|
||||
<string name="Permision_storage">Write External Storage permission allows us to do store images. Please allow this permission in App Settings.</string>
|
||||
|
||||
<string name="Permission_Denied_WRITE_EXTERNAL_STORAGE">Permission Denied, You cannot use local drive.</string>
|
||||
|
||||
<string name="account_create_register_or_import">ACCOUNT CREATE/REGISTER OR IMPORT</string>
|
||||
|
|
Loading…
Reference in a new issue