1
0
mirror of https://github.com/moparisthebest/Yaaic synced 2024-11-29 12:22:21 -05:00

Some refactoring

This commit is contained in:
Sebastian Kaspari 2010-03-09 00:00:53 +01:00
parent fa53df0f41
commit d43b76c51d
2 changed files with 5 additions and 3 deletions

View File

@ -20,6 +20,11 @@ along with Yaaic. If not, see <http://www.gnu.org/licenses/>.
*/
package org.yaaic.model;
/**
* Helper class for server status constants
*
* @author Sebastian Kaspari <sebastian@yaaic.org>
*/
public class Status {
public static final int DISCONNECTED = 0;
public static final int CONNECTING = 1;

View File

@ -29,7 +29,6 @@ import android.content.ServiceConnection;
import android.os.Bundle;
import android.os.IBinder;
import android.util.Log;
import android.view.Display;
import android.view.KeyEvent;
import android.view.Menu;
import android.view.MenuInflater;
@ -94,8 +93,6 @@ public class ServerActivity extends Activity implements ServiceConnection, Chann
((TextView) findViewById(R.id.title)).setText(server.getTitle());
((ImageView) findViewById(R.id.status)).setImageResource(server.getStatusIcon());
Display d = getWindowManager().getDefaultDisplay();
deck = (Gallery) findViewById(R.id.deck);
deckAdapter = new DeckAdapter();
deck.setAdapter(deckAdapter);