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:
parent
a7c121ebea
commit
debc79dd59
@ -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);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user