mirror of
https://github.com/moparisthebest/Yaaic
synced 2024-11-11 11:44:59 -05:00
Fixed NullPointerException when switching to fullscreen mode
This commit is contained in:
parent
3169312230
commit
7680f34bc5
@ -117,6 +117,8 @@ public class ConversationActivity extends Activity implements ServiceConnection,
|
||||
((TextView) findViewById(R.id.title)).setText(server.getTitle());
|
||||
((EditText) findViewById(R.id.input)).setOnKeyListener(this);
|
||||
|
||||
switcher = (ViewSwitcher) findViewById(R.id.switcher);
|
||||
|
||||
deckAdapter = new DeckAdapter();
|
||||
deck = (Gallery) findViewById(R.id.deck);
|
||||
deck.setOnItemSelectedListener(new ConversationSelectedListener(server, (TextView) findViewById(R.id.title)));
|
||||
@ -129,8 +131,6 @@ public class ConversationActivity extends Activity implements ServiceConnection,
|
||||
deckAdapter.clearConversations();
|
||||
}
|
||||
|
||||
switcher = (ViewSwitcher) findViewById(R.id.switcher);
|
||||
|
||||
// Optimization : cache field lookups
|
||||
Collection<Conversation> mConversations = server.getConversations();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user