diff --git a/core/src/cz/nic/tablexia/screen/profile/ProfileScreen.java b/core/src/cz/nic/tablexia/screen/profile/ProfileScreen.java index 181f7347d2736e6657d6cc34ae239df0ecd9ee89..bf9202c612551d49d9cfe7b14616d74e6d0972c2 100644 --- a/core/src/cz/nic/tablexia/screen/profile/ProfileScreen.java +++ b/core/src/cz/nic/tablexia/screen/profile/ProfileScreen.java @@ -105,19 +105,12 @@ public class ProfileScreen extends FormScreen { private TablexiaLabel createUserUuidDescription() { TablexiaLabel resultLabel; - //No UUID -> Printing USER_UUID_ERROR msg - if(getSelectedUser().getUuid() == null || getSelectedUser().getUuid().isEmpty()) { - resultLabel = new TablexiaLabel( - getText(USER_UUID_ERROR), - new TablexiaLabel.TablexiaLabelStyle(ApplicationFontManager.FontType_NEW.BOLD_16, Color.BLACK) - ); - } - else { //Found UUID -> Printing USER_UUID_DESCRIPTION_TEXT - resultLabel = new TablexiaLabel( - getText(USER_UUID_DESCRIPTION_TEXT), - new TablexiaLabel.TablexiaLabelStyle(ApplicationFontManager.FontType_NEW.BOLD_16, Color.BLACK) - ); - } + String resultLabelText = getSelectedUser().getUuid() == null || getSelectedUser().getUuid().isEmpty() ? getText(USER_UUID_ERROR) : getText(USER_UUID_DESCRIPTION_TEXT); + + resultLabel = new TablexiaLabel( + resultLabelText, + new TablexiaLabel.TablexiaLabelStyle(ApplicationFontManager.FontType_NEW.BOLD_16, Color.BLACK) + ); resultLabel.setPosition( book.getX() + book.getWidth() / 2 * USER_UUID_PADDING,