add quick preference migration for current user
This commit is contained in:
parent
113c2a8481
commit
ee5a9e7fa3
1 changed files with 5 additions and 0 deletions
|
|
@ -41,6 +41,11 @@ public class App extends Application {
|
|||
database = createDatabase(this);
|
||||
apiClient = createApiClient(this);
|
||||
|
||||
if (database.userDao().getUsers().size() == 0) {
|
||||
PreferenceUtil.getInstance(this).setServer(null);
|
||||
PreferenceUtil.getInstance(this).setUser(null);
|
||||
}
|
||||
|
||||
if (!ThemeStore.isConfigured(this, 1)) {
|
||||
ThemeStore.editTheme(this).primaryColorRes(R.color.md_indigo_500).accentColorRes(R.color.md_pink_A400).commit();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue