mirror of
https://github.com/moparisthebest/Yaaic
synced 2025-02-16 15:00:14 -05:00
AddChannelActivity: Always set cursor at the end of the input field
This commit is contained in:
parent
8fea644007
commit
ae871f8a1f
@ -31,14 +31,14 @@ import android.content.DialogInterface;
|
|||||||
import android.content.Intent;
|
import android.content.Intent;
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
import android.view.View.OnClickListener;
|
|
||||||
import android.view.Window;
|
import android.view.Window;
|
||||||
|
import android.view.View.OnClickListener;
|
||||||
import android.widget.AdapterView;
|
import android.widget.AdapterView;
|
||||||
import android.widget.AdapterView.OnItemClickListener;
|
|
||||||
import android.widget.ArrayAdapter;
|
import android.widget.ArrayAdapter;
|
||||||
import android.widget.Button;
|
import android.widget.Button;
|
||||||
import android.widget.EditText;
|
import android.widget.EditText;
|
||||||
import android.widget.ListView;
|
import android.widget.ListView;
|
||||||
|
import android.widget.AdapterView.OnItemClickListener;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Adding auto join channels to a server
|
* Adding auto join channels to a server
|
||||||
@ -64,6 +64,7 @@ public class AddChannelActivity extends Activity implements OnClickListener, OnI
|
|||||||
setContentView(R.layout.channeladd);
|
setContentView(R.layout.channeladd);
|
||||||
|
|
||||||
channelInput = (EditText) findViewById(R.id.channel);
|
channelInput = (EditText) findViewById(R.id.channel);
|
||||||
|
channelInput.setSelection(1);
|
||||||
|
|
||||||
adapter = new ArrayAdapter<String>(this, R.layout.channelitem);
|
adapter = new ArrayAdapter<String>(this, R.layout.channelitem);
|
||||||
|
|
||||||
@ -97,6 +98,7 @@ public class AddChannelActivity extends Activity implements OnClickListener, OnI
|
|||||||
channels.add(channel);
|
channels.add(channel);
|
||||||
adapter.add(channel);
|
adapter.add(channel);
|
||||||
channelInput.setText("#");
|
channelInput.setText("#");
|
||||||
|
channelInput.setSelection(1);
|
||||||
okButton.setEnabled(true);
|
okButton.setEnabled(true);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user