Browse Source

Minor improvement

main
M66B 6 years ago
parent
commit
728b9c6b94
1 changed files with 6 additions and 6 deletions
  1. +6
    -6
      app/src/main/java/eu/faircode/email/FragmentSetup.java

+ 6
- 6
app/src/main/java/eu/faircode/email/FragmentSetup.java View File

@ -101,9 +101,6 @@ public class FragmentSetup extends Fragment {
DB.getInstance(getContext()).account().liveFirstAccount().observe(FragmentSetup.this, new Observer<EntityAccount>() {
@Override
public void onChanged(@Nullable EntityAccount account) {
btnAccount.setEnabled(true);
pbAccount.setVisibility(View.GONE);
if (!once) {
once = true;
@ -117,6 +114,9 @@ public class FragmentSetup extends Fragment {
FragmentTransaction fragmentTransaction = getFragmentManager().beginTransaction();
fragmentTransaction.replace(R.id.content_frame, fragment).addToBackStack("account");
fragmentTransaction.commit();
btnAccount.setEnabled(true);
pbAccount.setVisibility(View.GONE);
}
}
});
@ -145,9 +145,6 @@ public class FragmentSetup extends Fragment {
DB.getInstance(getContext()).identity().liveFirstIdentity().observe(FragmentSetup.this, new Observer<EntityIdentity>() {
@Override
public void onChanged(@Nullable EntityIdentity identity) {
btnIdentity.setEnabled(true);
pbIdentity.setVisibility(View.GONE);
if (!once) {
once = true;
Bundle args = new Bundle();
@ -161,6 +158,9 @@ public class FragmentSetup extends Fragment {
fragmentTransaction.replace(R.id.content_frame, fragment).addToBackStack("identity");
fragmentTransaction.commit();
}
btnIdentity.setEnabled(true);
pbIdentity.setVisibility(View.GONE);
}
});
}


Loading…
Cancel
Save