From 76d82a6ca10d9bf2913fa56d8b9beef446655ade Mon Sep 17 00:00:00 2001 From: Juan Carlos Garrote Date: Fri, 9 Feb 2024 12:51:00 +0100 Subject: [PATCH] Disable temporally storage management access from the device settings --- owncloudApp/src/main/AndroidManifest.xml | 3 +-- .../owncloud/android/ui/activity/ManageSpaceActivity.java | 8 ++------ owncloudApp/src/main/res/layout/activity_manage_space.xml | 3 ++- owncloudApp/src/main/res/values/strings.xml | 2 +- 4 files changed, 6 insertions(+), 10 deletions(-) diff --git a/owncloudApp/src/main/AndroidManifest.xml b/owncloudApp/src/main/AndroidManifest.xml index 9fac4672c89..96f43ff31e6 100644 --- a/owncloudApp/src/main/AndroidManifest.xml +++ b/owncloudApp/src/main/AndroidManifest.xml @@ -196,7 +196,6 @@ android:icon="@drawable/copy_link" android:label="@string/copy_link" /> - - \ No newline at end of file + diff --git a/owncloudApp/src/main/java/com/owncloud/android/ui/activity/ManageSpaceActivity.java b/owncloudApp/src/main/java/com/owncloud/android/ui/activity/ManageSpaceActivity.java index ef750ff9e9e..3df23505d8b 100644 --- a/owncloudApp/src/main/java/com/owncloud/android/ui/activity/ManageSpaceActivity.java +++ b/owncloudApp/src/main/java/com/owncloud/android/ui/activity/ManageSpaceActivity.java @@ -28,7 +28,6 @@ import android.view.MenuItem; import android.widget.Button; import android.widget.LinearLayout; -import android.widget.TextView; import androidx.appcompat.app.ActionBar; import androidx.appcompat.app.AppCompatActivity; @@ -65,13 +64,10 @@ protected void onCreate(Bundle savedInstanceState) { actionBar.setDisplayHomeAsUpEnabled(true); actionBar.setTitle(R.string.manage_space_title); - TextView descriptionTextView = findViewById(R.id.general_description); - descriptionTextView.setText(getString(R.string.manage_space_description, getString(R.string.app_name))); - Button clearDataButton = findViewById(R.id.clearDataButton); clearDataButton.setOnClickListener(v -> { - ClearDataAsyncTask clearDataTask = new ClearDataAsyncTask(); - clearDataTask.execute(); +// ClearDataAsyncTask clearDataTask = new ClearDataAsyncTask(); +// clearDataTask.execute(); }); } diff --git a/owncloudApp/src/main/res/layout/activity_manage_space.xml b/owncloudApp/src/main/res/layout/activity_manage_space.xml index 9d64ca5671b..2c560d4c84e 100644 --- a/owncloudApp/src/main/res/layout/activity_manage_space.xml +++ b/owncloudApp/src/main/res/layout/activity_manage_space.xml @@ -40,6 +40,7 @@ android:layout_margin="@dimen/standard_margin" android:contentDescription="@string/manage_space_clear_data" android:text="@string/manage_space_clear_data" + android:enabled="false" android:theme="@style/Button.Primary" /> - \ No newline at end of file + diff --git a/owncloudApp/src/main/res/values/strings.xml b/owncloudApp/src/main/res/values/strings.xml index 75dd70de2e2..1b2ed1d09a9 100644 --- a/owncloudApp/src/main/res/values/strings.xml +++ b/owncloudApp/src/main/res/values/strings.xml @@ -618,7 +618,7 @@ Clear Manage space - Settings, database and server certificates from %1$s\'s data will be deleted permanently. \n\nDownloaded files will be kept untouched.\n\nThis process can take some time. + This feature is not currently available. Next versions will include new features for automatic and manual removal of storage. Stay tuned! Clear data Some files could not be deleted.