From cbf134a6e2202908655e869f6414f1dc1ccf29be Mon Sep 17 00:00:00 2001 From: Andy Scherzinger Date: Tue, 29 Dec 2015 01:12:08 +0100 Subject: [PATCH] move strings to resource file --- res/values/strings.xml | 3 +++ src/com/owncloud/android/ui/activity/FileDisplayActivity.java | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/res/values/strings.xml b/res/values/strings.xml index b52d5b3daf..0211ac5e52 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -406,4 +406,7 @@ Settings, database and server certificates from %1$s\'s data will be deleted permanentlty. \n\nDownloaded files will be kept untouched.\n\nThis process can take some time. Clear data Some files could not be deleted. + + Write access is required to upload/download files. + diff --git a/src/com/owncloud/android/ui/activity/FileDisplayActivity.java b/src/com/owncloud/android/ui/activity/FileDisplayActivity.java index 02971a7c50..53d99da528 100644 --- a/src/com/owncloud/android/ui/activity/FileDisplayActivity.java +++ b/src/com/owncloud/android/ui/activity/FileDisplayActivity.java @@ -220,9 +220,9 @@ public class FileDisplayActivity extends HookActivity // code is still in place in case this changes in the future // Show explanation to the user and then request permission - Snackbar.make(findViewById(R.id.ListLayout), "Write access is required to upload/download files.", + Snackbar.make(findViewById(R.id.ListLayout), R.string.permission_storage_access, Snackbar.LENGTH_INDEFINITE) - .setAction("OK", new View.OnClickListener() { + .setAction(R.string.common_ok, new View.OnClickListener() { @Override public void onClick(View v) { requestWriteExternalStoreagePermission();