diff --git a/application/res/layout/about.xml b/application/res/layout/about.xml index 2b8216a..66fade7 100644 --- a/application/res/layout/about.xml +++ b/application/res/layout/about.xml @@ -63,13 +63,23 @@ along with Yaaic. If not, see . android:layout_height="wrap_content" android:text="@string/app_homepage" android:linksClickable="false" - android:autoLink="web" + android:autoLink="none" android:textSize="16sp" - android:textColorLink="#FF6CB600" + android:gravity="center_horizontal" /> + - \ No newline at end of file + diff --git a/application/res/values/application.xml b/application/res/values/application.xml index b3637d6..0f8bde4 100644 --- a/application/res/values/application.xml +++ b/application/res/values/application.xml @@ -4,6 +4,7 @@ Yet Another Android IRC Client 0.8 http://www.yaaic.org + irc://irc.epd-me.net/yaaic (C) 2009-2011 Sebastian Kaspari diff --git a/application/src/org/yaaic/activity/AboutActivity.java b/application/src/org/yaaic/activity/AboutActivity.java index 46e44b1..3c1c65e 100644 --- a/application/src/org/yaaic/activity/AboutActivity.java +++ b/application/src/org/yaaic/activity/AboutActivity.java @@ -23,8 +23,12 @@ package org.yaaic.activity; import org.yaaic.R; import android.app.Activity; +import android.content.Intent; +import android.net.Uri; import android.os.Bundle; +import android.view.View; import android.view.Window; +import android.widget.TextView; /** * About activity @@ -33,6 +37,7 @@ import android.view.Window; */ public class AboutActivity extends Activity { + private TextView mIRCLink; /** * On create */ @@ -44,5 +49,18 @@ public class AboutActivity extends Activity requestWindowFeature(Window.FEATURE_NO_TITLE); setContentView(R.layout.about); + + mIRCLink = (TextView) findViewById(R.id.about_irclink); + mIRCLink.setOnClickListener(new View.OnClickListener() { + public void onClick(View view) { + Intent i = new Intent(getBaseContext(), org.yaaic.activity.AddServerActivity.class); + i.setData(Uri.parse(getString(R.string.app_irc))); + startActivity(i); + } + }); + } + + + } diff --git a/application/src/org/yaaic/activity/AddServerActivity.java b/application/src/org/yaaic/activity/AddServerActivity.java index ff84dbd..cb15bc8 100644 --- a/application/src/org/yaaic/activity/AddServerActivity.java +++ b/application/src/org/yaaic/activity/AddServerActivity.java @@ -134,6 +134,12 @@ public class AddServerActivity extends Activity implements OnClickListener if (uri.getPort() != -1) { ((EditText) findViewById(R.id.port)).setText(String.valueOf(uri.getPort())); } + if (uri.getPath() != null) { + channels.add(uri.getPath().replace('/', '#')); + } + if (uri.getQuery() != null) { + ((EditText) findViewById(R.id.password)).setText(String.valueOf(uri.getQuery())); + } } }