mirror of
https://github.com/moparisthebest/Yaaic
synced 2024-11-29 12:22:21 -05:00
Some refactoring
This commit is contained in:
parent
fa53df0f41
commit
d43b76c51d
@ -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;
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user