mirror of
https://github.com/iSoron/uhabits.git
synced 2025-12-06 09:08:52 -06:00
Hide empty message at startup
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user