Fixed saving existing accounts

This commit is contained in:
M66B 2018-11-16 09:06:10 +01:00
parent 34593e0911
commit cac0ed5b1d
1 changed files with 4 additions and 3 deletions

View File

@ -229,8 +229,6 @@ public class FragmentAccount extends FragmentEx {
btnCheck.setVisibility(position > 0 ? View.VISIBLE : View.GONE);
tvIdle.setVisibility(View.GONE);
grpFolders.setVisibility(View.GONE);
btnSave.setVisibility(View.GONE);
Object tag = adapterView.getTag();
if (tag != null && (Integer) tag == position)
@ -245,6 +243,9 @@ public class FragmentAccount extends FragmentEx {
tilPassword.getEditText().setText(null);
etName.setText(position > 1 ? provider.name : null);
grpFolders.setVisibility(View.GONE);
btnSave.setVisibility(View.GONE);
}
@Override
@ -985,7 +986,7 @@ public class FragmentAccount extends FragmentEx {
new SimpleTask<List<EntityFolder>>() {
@Override
protected List<EntityFolder> onLoad(Context context, Bundle args) throws Throwable {
protected List<EntityFolder> onLoad(Context context, Bundle args) {
long account = args.getLong("account");
return DB.getInstance(context).folder().getFolders(account);
}