mirror of
https://github.com/moparisthebest/Yaaic
synced 2025-01-08 12:18:07 -05:00
ConversationActivity: Code cleanup, remove unused imports and unused code
This commit is contained in:
parent
aaf3f3e332
commit
1a820d9609
@ -58,7 +58,6 @@ import org.yaaic.view.MessageListView;
|
||||
import android.app.Activity;
|
||||
import android.app.AlertDialog;
|
||||
import android.content.ComponentName;
|
||||
import android.content.Context;
|
||||
import android.content.DialogInterface;
|
||||
import android.content.Intent;
|
||||
import android.content.IntentFilter;
|
||||
@ -76,8 +75,8 @@ import android.view.Menu;
|
||||
import android.view.MenuInflater;
|
||||
import android.view.MenuItem;
|
||||
import android.view.View;
|
||||
import android.view.View.OnKeyListener;
|
||||
import android.view.Window;
|
||||
import android.view.View.OnKeyListener;
|
||||
import android.view.inputmethod.InputMethodManager;
|
||||
import android.widget.Button;
|
||||
import android.widget.EditText;
|
||||
@ -120,11 +119,6 @@ public class ConversationActivity extends Activity implements ServiceConnection,
|
||||
// channel name in onActivityResult() and run the join command in onResume().
|
||||
private String joinChannelBuffer;
|
||||
|
||||
// flag passed to setInputType later
|
||||
// shall be TYPE_TEXT_FLAG_NO_SUGGESTIONS but it's not supported in all API levels (only in 5+)
|
||||
// We'll set it to 0 if it's not supported
|
||||
private int setInputTypeFlag;
|
||||
|
||||
private int historySize;
|
||||
|
||||
OnKeyListener inputKeyListener = new OnKeyListener() {
|
||||
@ -234,6 +228,7 @@ public class ConversationActivity extends Activity implements ServiceConnection,
|
||||
}
|
||||
|
||||
int setInputTypeFlags = 0;
|
||||
|
||||
if (settings.autoCorrectText()) {
|
||||
setInputTypeFlags |= InputType.TYPE_TEXT_FLAG_AUTO_CORRECT;
|
||||
} else {
|
||||
@ -586,8 +581,9 @@ public class ConversationActivity extends Activity implements ServiceConnection,
|
||||
Channel channel = (Channel) server.getConversation(selected);
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append(server.getTitle() + " - " + channel.getName());
|
||||
if (!(channel.getTopic()).equals(""))
|
||||
if (!(channel.getTopic()).equals("")) {
|
||||
sb.append(" - " + channel.getTopic());
|
||||
}
|
||||
((TextView) findViewById(R.id.title)).setText(sb.toString());
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user