mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-25 17:27:00 +00:00
Minor improvement
This commit is contained in:
parent
64285723f6
commit
728b9c6b94
1 changed files with 6 additions and 6 deletions
|
@ -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…
Reference in a new issue