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

@ -32,14 +32,13 @@ import android.widget.TextView;
/** /**
* About activity * About activity
* *
* @author Sebastian Kaspari <sebastian@yaaic.org> * @author Sebastian Kaspari <sebastian@yaaic.org>
*/ */
public class AboutActivity extends Activity public class AboutActivity extends Activity
{ {
private TextView mIRCLink;
/** /**
* On create * On activity getting created.
*/ */
@Override @Override
public void onCreate(Bundle savedInstanceState) public void onCreate(Bundle savedInstanceState)
@ -50,12 +49,13 @@ public class AboutActivity extends Activity
setContentView(R.layout.about); setContentView(R.layout.about);
mIRCLink = (TextView) findViewById(R.id.about_irclink); TextView ircLinkView = (TextView) findViewById(R.id.about_irclink);
mIRCLink.setOnClickListener(new View.OnClickListener() { ircLinkView.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) { public void onClick(View view) {
Intent i = new Intent(getBaseContext(), org.yaaic.activity.AddServerActivity.class); Intent intent = new Intent(AboutActivity.this, AddServerActivity.class);
i.setData(Uri.parse(getString(R.string.app_irc))); intent.setData(Uri.parse(getString(R.string.app_irc)));
startActivity(i); startActivity(intent);
} }
}); });
} }