Skip to content

Commit

Permalink
Disable temporally storage management access from the device settings
Browse files Browse the repository at this point in the history
  • Loading branch information
JuancaG05 authored and Aitorbp committed Feb 12, 2024
1 parent 3459e76 commit 76d82a6
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 10 deletions.
3 changes: 1 addition & 2 deletions owncloudApp/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,6 @@
android:icon="@drawable/copy_link"
android:label="@string/copy_link" />
<activity android:name=".ui.activity.FolderPickerActivity" />
<activity android:name=".ui.activity.UploadPathActivity" />
<activity
android:name=".presentation.sharing.ShareActivity"
android:exported="false"
Expand Down Expand Up @@ -246,4 +245,4 @@
</activity>
</application>

</manifest>
</manifest>
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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();
});
}

Expand Down
3 changes: 2 additions & 1 deletion owncloudApp/src/main/res/layout/activity_manage_space.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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" />

</LinearLayout>
</LinearLayout>
2 changes: 1 addition & 1 deletion owncloudApp/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -618,7 +618,7 @@
<string name="action_upload_clear">Clear</string>

<string name="manage_space_title">Manage space</string>
<string name="manage_space_description">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.</string>
<string name="manage_space_description">This feature is not currently available. Next versions will include new features for automatic and manual removal of storage. Stay tuned!</string>
<string name="manage_space_clear_data">Clear data</string>
<string name="manage_space_error">Some files could not be deleted.</string>

Expand Down

0 comments on commit 76d82a6

Please sign in to comment.