Skip to content

Commit

Permalink
AddChannelActivity: Always set cursor at the end of the input field
Browse files Browse the repository at this point in the history
  • Loading branch information
pocmo committed Jun 13, 2011
1 parent 8fea644 commit ae871f8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions application/src/org/yaaic/activity/AddChannelActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,14 @@
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.Window;
import android.view.View.OnClickListener;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemClickListener;
import android.widget.ArrayAdapter;
import android.widget.Button;
import android.widget.EditText;
import android.widget.ListView;
import android.widget.AdapterView.OnItemClickListener;

/**
* Adding auto join channels to a server
Expand All @@ -64,6 +64,7 @@ public void onCreate(Bundle savedInstanceState)
setContentView(R.layout.channeladd);

channelInput = (EditText) findViewById(R.id.channel);
channelInput.setSelection(1);

adapter = new ArrayAdapter<String>(this, R.layout.channelitem);

Expand Down Expand Up @@ -97,6 +98,7 @@ public void onClick(View v)
channels.add(channel);
adapter.add(channel);
channelInput.setText("#");
channelInput.setSelection(1);
okButton.setEnabled(true);
break;

Expand Down

0 comments on commit ae871f8

Please sign in to comment.