Refactoring, updated text

This commit is contained in:
M66B
2020-08-20 23:18:55 +02:00
parent 78d524ef56
commit 352f757ede
6 changed files with 22 additions and 22 deletions

View File

@@ -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);
}
});
}