Skip to content
This repository has been archived by the owner on Oct 28, 2024. It is now read-only.

Commit

Permalink
Fix unreliable Preferences from Account Source (#798)
Browse files Browse the repository at this point in the history
* Create empty Preferences object on error

* Update prefs from account when preferences fails
  • Loading branch information
Jacocococo authored Sep 1, 2023
1 parent 8070108 commit 53369eb
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,9 @@ public void onSuccess(Preferences result){
@Override
public void onError(ErrorResponse error){
Log.w(TAG, "Failed to load preferences for account "+getID()+": "+error);
if (preferences==null)
preferences=new Preferences();
preferencesFromAccountSource(self);
}
})
.exec(getID());
Expand Down

0 comments on commit 53369eb

Please sign in to comment.