|
@ -82,7 +82,7 @@ public class FragmentSetup extends Fragment { |
|
|
btnAccount.setEnabled(false); |
|
|
btnAccount.setEnabled(false); |
|
|
pbAccount.setVisibility(View.VISIBLE); |
|
|
pbAccount.setVisibility(View.VISIBLE); |
|
|
|
|
|
|
|
|
DB.getInstance(getContext()).account().liveFirstAccount().observe(getActivity(), new Observer<EntityAccount>() { |
|
|
|
|
|
|
|
|
DB.getInstance(getContext()).account().liveFirstAccount().observe(FragmentSetup.this, new Observer<EntityAccount>() { |
|
|
@Override |
|
|
@Override |
|
|
public void onChanged(@Nullable EntityAccount account) { |
|
|
public void onChanged(@Nullable EntityAccount account) { |
|
|
btnAccount.setEnabled(true); |
|
|
btnAccount.setEnabled(true); |
|
@ -116,7 +116,7 @@ public class FragmentSetup extends Fragment { |
|
|
btnIdentity.setEnabled(false); |
|
|
btnIdentity.setEnabled(false); |
|
|
pbIdentity.setVisibility(View.VISIBLE); |
|
|
pbIdentity.setVisibility(View.VISIBLE); |
|
|
|
|
|
|
|
|
DB.getInstance(getContext()).identity().liveFirstIdentity().observe(getActivity(), new Observer<EntityIdentity>() { |
|
|
|
|
|
|
|
|
DB.getInstance(getContext()).identity().liveFirstIdentity().observe(FragmentSetup.this, new Observer<EntityIdentity>() { |
|
|
@Override |
|
|
@Override |
|
|
public void onChanged(@Nullable EntityIdentity identity) { |
|
|
public void onChanged(@Nullable EntityIdentity identity) { |
|
|
btnIdentity.setEnabled(true); |
|
|
btnIdentity.setEnabled(true); |
|
|