AddChannelActivity: missing dependencies
This commit is contained in:
parent
034617efc3
commit
b54e92c1e2
|
@ -127,6 +127,20 @@ along with Yaaic. If not, see <http://www.gnu.org/licenses/>.
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text=""
|
android:text=""
|
||||||
android:singleLine="true" />
|
android:singleLine="true" />
|
||||||
|
<TextView
|
||||||
|
android:text="Channels"
|
||||||
|
android:layout_width="fill_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:background="#ff333333"
|
||||||
|
android:textSize="14px"
|
||||||
|
android:gravity="center_horizontal"
|
||||||
|
android:padding="3px"
|
||||||
|
android:layout_margin="2px" />
|
||||||
|
<Button
|
||||||
|
android:id="@+id/channels"
|
||||||
|
android:layout_width="fill_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="Channels" />
|
||||||
<TextView
|
<TextView
|
||||||
android:text="Preferences"
|
android:text="Preferences"
|
||||||
android:layout_width="fill_parent"
|
android:layout_width="fill_parent"
|
||||||
|
@ -148,7 +162,8 @@ along with Yaaic. If not, see <http://www.gnu.org/licenses/>.
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:orientation="horizontal"
|
android:orientation="horizontal"
|
||||||
android:layout_width="fill_parent"
|
android:layout_width="fill_parent"
|
||||||
android:layout_height="wrap_content">
|
android:layout_height="wrap_content"
|
||||||
|
android:paddingTop="10px">
|
||||||
<Button
|
<Button
|
||||||
android:id="@+id/add"
|
android:id="@+id/add"
|
||||||
android:text="@string/add_server"
|
android:text="@string/add_server"
|
||||||
|
|
|
@ -24,6 +24,7 @@ import java.io.UnsupportedEncodingException;
|
||||||
import java.util.regex.Pattern;
|
import java.util.regex.Pattern;
|
||||||
|
|
||||||
import android.app.Activity;
|
import android.app.Activity;
|
||||||
|
import android.content.Intent;
|
||||||
import android.net.Uri;
|
import android.net.Uri;
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
|
@ -72,6 +73,8 @@ public class AddServerActivity extends Activity implements OnClickListener
|
||||||
adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
|
adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
|
||||||
spinner.setAdapter(adapter);
|
spinner.setAdapter(adapter);
|
||||||
|
|
||||||
|
((Button) findViewById(R.id.channels)).setOnClickListener(this);
|
||||||
|
|
||||||
Bundle extras = getIntent().getExtras();
|
Bundle extras = getIntent().getExtras();
|
||||||
if (extras != null && extras.containsKey(Extra.SERVER)) {
|
if (extras != null && extras.containsKey(Extra.SERVER)) {
|
||||||
// Request to edit an existing server
|
// Request to edit an existing server
|
||||||
|
@ -120,6 +123,9 @@ public class AddServerActivity extends Activity implements OnClickListener
|
||||||
public void onClick(View v)
|
public void onClick(View v)
|
||||||
{
|
{
|
||||||
switch (v.getId()) {
|
switch (v.getId()) {
|
||||||
|
case R.id.channels:
|
||||||
|
startActivityForResult(new Intent(this, AddChannelActivity.class), 0);
|
||||||
|
break;
|
||||||
case R.id.add:
|
case R.id.add:
|
||||||
try {
|
try {
|
||||||
validateServer();
|
validateServer();
|
||||||
|
|
Loading…
Reference in New Issue