From 9a75330207c845ff8e132bcac61da1b5b66d4e8b Mon Sep 17 00:00:00 2001 From: dtvv Date: Fri, 12 Oct 2018 12:37:23 -0500 Subject: [PATCH] Change the strings text for wirte_external_permissions and set them as android string resource --- .../crystalwallet/fragments/BackupsSettingsFragment.java | 2 +- .../crystalwallet/fragments/ImportAccountOptionsFragment.java | 2 +- app/src/main/res/values/strings.xml | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/cy/agorise/crystalwallet/fragments/BackupsSettingsFragment.java b/app/src/main/java/cy/agorise/crystalwallet/fragments/BackupsSettingsFragment.java index 07be613..0255eb8 100644 --- a/app/src/main/java/cy/agorise/crystalwallet/fragments/BackupsSettingsFragment.java +++ b/app/src/main/java/cy/agorise/crystalwallet/fragments/BackupsSettingsFragment.java @@ -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); } diff --git a/app/src/main/java/cy/agorise/crystalwallet/fragments/ImportAccountOptionsFragment.java b/app/src/main/java/cy/agorise/crystalwallet/fragments/ImportAccountOptionsFragment.java index 47fec08..5266c46 100644 --- a/app/src/main/java/cy/agorise/crystalwallet/fragments/ImportAccountOptionsFragment.java +++ b/app/src/main/java/cy/agorise/crystalwallet/fragments/ImportAccountOptionsFragment.java @@ -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); diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index e6091f2..dca2b49 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -18,6 +18,8 @@ You dont have transactions You dont have contacts + Write External Storage permission allows us to do store images. Please allow this permission in App Settings. + Permission Denied, You cannot use local drive. ACCOUNT CREATE/REGISTER OR IMPORT