renamed member variables

This commit is contained in:
AndyScherzinger 2017-02-14 23:23:19 +01:00
parent fef1bd0f63
commit 773773173a
No known key found for this signature in database
GPG key ID: 6CADC7E3523C308B

View file

@ -2,7 +2,9 @@
* Nextcloud Android client application * Nextcloud Android client application
* *
* @author Mario Danic * @author Mario Danic
* @author Andy Scherzinger
* Copyright (C) 2017 Mario Danic * Copyright (C) 2017 Mario Danic
* Copyright (C) 2017 Andy Scherzinger
* Copyright (C) 2017 Nextcloud GmbH. * Copyright (C) 2017 Nextcloud GmbH.
* *
* This program is free software: you can redistribute it and/or modify * This program is free software: you can redistribute it and/or modify
@ -62,7 +64,6 @@ import butterknife.Unbinder;
/** /**
* This Activity presents the user information. * This Activity presents the user information.
*/ */
public class UserInfoActivity extends FileActivity { public class UserInfoActivity extends FileActivity {
private static final String TAG = UserInfoActivity.class.getSimpleName(); private static final String TAG = UserInfoActivity.class.getSimpleName();
@ -72,16 +73,16 @@ public class UserInfoActivity extends FileActivity {
private static final int KEY_DELETE_CODE = 101; private static final int KEY_DELETE_CODE = 101;
@BindView(R.id.empty_list_view) @BindView(R.id.empty_list_view)
public LinearLayout multiListContainer; public LinearLayout emptyContentContainer;
@BindView(R.id.empty_list_view_text) @BindView(R.id.empty_list_view_text)
public TextView multiListMessage; public TextView emptyContentMessage;
@BindView(R.id.empty_list_view_headline) @BindView(R.id.empty_list_view_headline)
public TextView multiListHeadline; public TextView emptyContentHeadline;
@BindView(R.id.empty_list_icon) @BindView(R.id.empty_list_icon)
public ImageView multiListIcon; public ImageView emptyContentIcon;
@BindView(R.id.user_info_view) @BindView(R.id.user_info_view)
public LinearLayout userInfoView; public LinearLayout userInfoView;
@ -170,7 +171,7 @@ public class UserInfoActivity extends FileActivity {
if (userInfo != null) { if (userInfo != null) {
populateUserInfoUi(userInfo); populateUserInfoUi(userInfo);
multiListContainer.setVisibility(View.GONE); emptyContentContainer.setVisibility(View.GONE);
userInfoView.setVisibility(View.VISIBLE); userInfoView.setVisibility(View.VISIBLE);
} else { } else {
setMultiListLoadingMessage(); setMultiListLoadingMessage();
@ -212,19 +213,19 @@ public class UserInfoActivity extends FileActivity {
} }
private void setMultiListLoadingMessage() { private void setMultiListLoadingMessage() {
if (multiListContainer != null) { if (emptyContentContainer != null) {
multiListHeadline.setText(R.string.file_list_loading); emptyContentHeadline.setText(R.string.file_list_loading);
multiListMessage.setText(""); emptyContentMessage.setText("");
multiListIcon.setVisibility(View.GONE); emptyContentIcon.setVisibility(View.GONE);
multiListProgressBar.setVisibility(View.VISIBLE); multiListProgressBar.setVisibility(View.VISIBLE);
} }
} }
public void setMessageForMultiList(String headline, String message) { private void setMessageForMultiList(String headline, String message) {
if (multiListContainer != null && multiListMessage != null) { if (emptyContentContainer != null && emptyContentMessage != null) {
multiListHeadline.setText(headline); emptyContentHeadline.setText(headline);
multiListMessage.setText(message); emptyContentMessage.setText(message);
multiListProgressBar.setVisibility(View.GONE); multiListProgressBar.setVisibility(View.GONE);
} }
@ -333,7 +334,6 @@ public class UserInfoActivity extends FileActivity {
} }
} }
private void fetchAndSetData() { private void fetchAndSetData() {
Thread t = new Thread(new Runnable() { Thread t = new Thread(new Runnable() {
public void run() { public void run() {
@ -349,7 +349,7 @@ public class UserInfoActivity extends FileActivity {
public void run() { public void run() {
populateUserInfoUi(userInfo); populateUserInfoUi(userInfo);
multiListContainer.setVisibility(View.GONE); emptyContentContainer.setVisibility(View.GONE);
userInfoView.setVisibility(View.VISIBLE); userInfoView.setVisibility(View.VISIBLE);
} }
}); });