if (isChecked) userName.requestFocus();
});
- preferredAccountsFilter.setText(mProfile.getPreferredAccountsFilter());
postingPermitted.setOnCheckedChangeListener(((buttonView, isChecked) -> {
preferredAccountsFilterLayout.setVisibility(isChecked ? View.VISIBLE : View.GONE);
}));
authParams.setVisibility(mProfile.isAuthEnabled() ? View.VISIBLE : View.GONE);
userName.setText(mProfile.isAuthEnabled() ? mProfile.getAuthUserName() : "");
password.setText(mProfile.isAuthEnabled() ? mProfile.getAuthPassword() : "");
+ preferredAccountsFilter.setText(mProfile.getPreferredAccountsFilter());
profileThemeId = mProfile.getThemeId();
}
else {
authParams.setVisibility(View.GONE);
userName.setText("");
password.setText("");
+ preferredAccountsFilter.setText(null);
profileThemeId = -1;
}