fix: clear cache btn

This commit is contained in:
Diamond 2022-11-05 13:38:28 -07:00
parent aaff072fae
commit 2699f1017c
No known key found for this signature in database
GPG key ID: DCBE5952BB3B6420
2 changed files with 3 additions and 1 deletions

View file

@ -50,7 +50,8 @@ class SettingsViewModel(
}
fun clearCacheDir() {
application.cacheDir.deleteRecursively()
application.externalCacheDir?.deleteRecursively()
application.showToast(R.string.action_cleared_cache)
}
init {

View file

@ -29,6 +29,7 @@
<string name="action_collapse">Collapse</string>
<string name="action_expand">Expand</string>
<string name="action_copied">Copied!</string>
<string name="action_cleared_cache">Cleared cache!</string>
<string name="permissions_grant_title">Grant Permissions</string>
<string name="permissions_grant_body">In order for Aliucord Manager to work properly, you need to grant file permissions. Since shared data in stored in ~/Aliucord, permissions are required in order for manager to function.</string>