|
|
|
@ -945,16 +945,15 @@ public class FragmentAccount extends FragmentEx {
|
|
|
|
|
|
|
|
|
|
color = (account == null || account.color == null ? Color.TRANSPARENT : account.color);
|
|
|
|
|
|
|
|
|
|
if (account == null)
|
|
|
|
|
new SimpleTask<Integer>() {
|
|
|
|
|
new SimpleTask<EntityAccount>() {
|
|
|
|
|
@Override
|
|
|
|
|
protected Integer onLoad(Context context, Bundle args) {
|
|
|
|
|
return DB.getInstance(context).account().getSynchronizingAccountCount();
|
|
|
|
|
protected EntityAccount onLoad(Context context, Bundle args) {
|
|
|
|
|
return DB.getInstance(context).account().getPrimaryAccount();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
protected void onLoaded(Bundle args, Integer count) {
|
|
|
|
|
cbPrimary.setChecked(count == 0);
|
|
|
|
|
protected void onLoaded(Bundle args, EntityAccount primary) {
|
|
|
|
|
cbPrimary.setChecked(primary == null);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|