mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-01 06:38:29 +02:00
Refactoring, updated text
This commit is contained in:
@@ -71,7 +71,7 @@ public class FragmentSetup extends FragmentBase {
|
||||
private TextView tvIdentityDone;
|
||||
private Button btnIdentity;
|
||||
private TextView tvIdentityWhat;
|
||||
private TextView tvNoIdentities;
|
||||
private TextView tvNoComposable;
|
||||
|
||||
private TextView tvPermissionsDone;
|
||||
private Button btnPermissions;
|
||||
@@ -118,7 +118,7 @@ public class FragmentSetup extends FragmentBase {
|
||||
tvIdentityDone = view.findViewById(R.id.tvIdentityDone);
|
||||
btnIdentity = view.findViewById(R.id.btnIdentity);
|
||||
tvIdentityWhat = view.findViewById(R.id.tvIdentityWhat);
|
||||
tvNoIdentities = view.findViewById(R.id.tvNoIdentities);
|
||||
tvNoComposable = view.findViewById(R.id.tvNoComposable);
|
||||
|
||||
tvPermissionsDone = view.findViewById(R.id.tvPermissionsDone);
|
||||
btnPermissions = view.findViewById(R.id.btnPermissions);
|
||||
@@ -311,7 +311,7 @@ public class FragmentSetup extends FragmentBase {
|
||||
tvIdentityDone.setText(null);
|
||||
tvIdentityDone.setCompoundDrawables(null, null, null, null);
|
||||
btnIdentity.setEnabled(false);
|
||||
tvNoIdentities.setVisibility(View.GONE);
|
||||
tvNoComposable.setVisibility(View.GONE);
|
||||
|
||||
tvPermissionsDone.setText(null);
|
||||
tvPermissionsDone.setCompoundDrawables(null, null, null, null);
|
||||
@@ -393,7 +393,7 @@ public class FragmentSetup extends FragmentBase {
|
||||
tvIdentityDone.setText(done ? R.string.title_setup_done : R.string.title_setup_to_do);
|
||||
tvIdentityDone.setTextColor(done ? textColorPrimary : colorWarning);
|
||||
tvIdentityDone.setCompoundDrawablesWithIntrinsicBounds(done ? check : null, null, null, null);
|
||||
tvNoIdentities.setVisibility(done ? View.GONE : View.VISIBLE);
|
||||
tvNoComposable.setVisibility(done ? View.GONE : View.VISIBLE);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user