mirror of
https://github.com/M66B/FairEmail.git
synced 2025-03-03 10:16:45 +00:00
parent
41504e8098
commit
409a9f5b3c
2 changed files with 10 additions and 4 deletions
|
@ -126,8 +126,6 @@ public class FragmentAccount extends FragmentEx {
|
||||||
adapter.setDropDownViewResource(R.layout.spinner_dropdown_item);
|
adapter.setDropDownViewResource(R.layout.spinner_dropdown_item);
|
||||||
spProfile.setAdapter(adapter);
|
spProfile.setAdapter(adapter);
|
||||||
|
|
||||||
pbCheck.setVisibility(View.GONE);
|
|
||||||
|
|
||||||
cbSynchronize.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
|
cbSynchronize.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {
|
public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {
|
||||||
|
@ -155,6 +153,11 @@ public class FragmentAccount extends FragmentEx {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// Initialize
|
||||||
|
tilPassword.setPasswordVisibilityToggleEnabled(id < 0);
|
||||||
|
pbCheck.setVisibility(View.GONE);
|
||||||
|
|
||||||
|
// Observe
|
||||||
DB.getInstance(getContext()).account().liveAccount(id).observe(this, new Observer<EntityAccount>() {
|
DB.getInstance(getContext()).account().liveAccount(id).observe(this, new Observer<EntityAccount>() {
|
||||||
@Override
|
@Override
|
||||||
public void onChanged(@Nullable EntityAccount account) {
|
public void onChanged(@Nullable EntityAccount account) {
|
||||||
|
|
|
@ -144,8 +144,6 @@ public class FragmentIdentity extends FragmentEx {
|
||||||
adapter.setDropDownViewResource(R.layout.spinner_dropdown_item);
|
adapter.setDropDownViewResource(R.layout.spinner_dropdown_item);
|
||||||
spProfile.setAdapter(adapter);
|
spProfile.setAdapter(adapter);
|
||||||
|
|
||||||
pbCheck.setVisibility(View.GONE);
|
|
||||||
|
|
||||||
cbSynchronize.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
|
cbSynchronize.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {
|
public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {
|
||||||
|
@ -176,6 +174,11 @@ public class FragmentIdentity extends FragmentEx {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// Initialize
|
||||||
|
tilPassword.setPasswordVisibilityToggleEnabled(id < 0);
|
||||||
|
pbCheck.setVisibility(View.GONE);
|
||||||
|
|
||||||
|
// Observer
|
||||||
DB.getInstance(getContext()).identity().liveIdentity(id).observe(this, new Observer<EntityIdentity>() {
|
DB.getInstance(getContext()).identity().liveIdentity(id).observe(this, new Observer<EntityIdentity>() {
|
||||||
@Override
|
@Override
|
||||||
public void onChanged(@Nullable EntityIdentity identity) {
|
public void onChanged(@Nullable EntityIdentity identity) {
|
||||||
|
|
Loading…
Reference in a new issue