Hide empty message at startup

This commit is contained in:
2016-06-15 09:54:39 -04:00
parent ec0e8ac24c
commit 5d8a348aaf
2 changed files with 3 additions and 10 deletions

View File

@@ -84,12 +84,6 @@ public class ListHabitsRootView extends BaseRootView
return progressBar;
}
public boolean getShowArchived()
{
if (listAdapter == null) return false;
return listAdapter.getIncludeArchived();
}
public void setShowArchived(boolean showArchived)
{
if (listAdapter == null) return;
@@ -144,9 +138,6 @@ public class ListHabitsRootView extends BaseRootView
protected void onAttachedToWindow()
{
super.onAttachedToWindow();
updateEmptyView();
if (listAdapter != null) listAdapter.getObservable().addListener(this);
}
@@ -175,6 +166,7 @@ public class ListHabitsRootView extends BaseRootView
private void updateEmptyView()
{
if (listAdapter == null) return;
llEmpty.setVisibility(
listAdapter.getCount() > 0 ? View.GONE : View.VISIBLE);
}

View File

@@ -55,7 +55,8 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center"
android:orientation="vertical">
android:orientation="vertical"
android:visibility="gone">
<TextView
android:id="@+id/tvStarEmpty"