Fix for #965 - don't backup accounts.json

This commit is contained in:
Steph Kraemer
2024-03-01 20:22:33 -05:00
parent f7dfebcbea
commit 123ed6c56d
3 changed files with 8 additions and 0 deletions

View File

@@ -85,6 +85,7 @@ public class AccountSessionManager{
private AccountSessionManager(){
prefs=MastodonApp.context.getSharedPreferences("account_manager", Context.MODE_PRIVATE);
// This file should not be backed up, otherwise the app may start with accounts already logged in. See res/xml/backup_rules.xml
File file=new File(MastodonApp.context.getFilesDir(), "accounts.json");
if(!file.exists())
return;