From 85dc0847e327744553e2851f4884c4b1fc1254fa Mon Sep 17 00:00:00 2001 From: Sebastian Kaspari Date: Thu, 15 Apr 2010 23:50:35 +0200 Subject: [PATCH] ServersActivity: Hide background icon if there are servers in the list --- src/org/yaaic/activity/ServersActivity.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/org/yaaic/activity/ServersActivity.java b/src/org/yaaic/activity/ServersActivity.java index 535d1cd..edfd07f 100644 --- a/src/org/yaaic/activity/ServersActivity.java +++ b/src/org/yaaic/activity/ServersActivity.java @@ -271,11 +271,16 @@ public class ServersActivity extends ListActivity implements ServiceConnection, } /** - * On server status updat + * On server status update */ public void onStatusUpdate() { adapter.loadServers(); + + if (!adapter.isEmpty()) { + // Hide background if there are servers in the list + getListView().setBackgroundDrawable(null); + } } } \ No newline at end of file