1
0
mirror of https://github.com/moparisthebest/Yaaic synced 2025-01-08 12:18:07 -05:00

AboutActivity: Code clean up. Some small refactorings.

This commit is contained in:
Sebastian Kaspari 2012-07-28 10:32:44 +02:00
parent a7c121ebea
commit debc79dd59

View File

@ -37,9 +37,8 @@ import android.widget.TextView;
*/
public class AboutActivity extends Activity
{
private TextView mIRCLink;
/**
* On create
* On activity getting created.
*/
@Override
public void onCreate(Bundle savedInstanceState)
@ -50,12 +49,13 @@ public class AboutActivity extends Activity
setContentView(R.layout.about);
mIRCLink = (TextView) findViewById(R.id.about_irclink);
mIRCLink.setOnClickListener(new View.OnClickListener() {
TextView ircLinkView = (TextView) findViewById(R.id.about_irclink);
ircLinkView.setOnClickListener(new View.OnClickListener() {
@Override
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);
Intent intent = new Intent(AboutActivity.this, AddServerActivity.class);
intent.setData(Uri.parse(getString(R.string.app_irc)));
startActivity(intent);
}
});
}