Refactored code

This commit is contained in:
Juan Miguel Boyero Corral 2011-05-02 21:22:50 +02:00
parent 5eb8f91647
commit 862ab99afd

View File

@ -170,14 +170,12 @@ public class SWADMain extends ExpandableListActivity {
Intent activity; Intent activity;
if(keyword.equals(getString(R.string.notificationsModuleLabel))) if(keyword.equals(getString(R.string.notificationsModuleLabel)))
{ {
activity = new Intent(getBaseContext(), activity = new Intent(getBaseContext(), Notifications.class);
Notifications.class);
startActivityForResult(activity, Global.NOTIFICATIONS_REQUEST_CODE); startActivityForResult(activity, Global.NOTIFICATIONS_REQUEST_CODE);
} else if(keyword.equals(getString(R.string.testsModuleLabel))) { } else if(keyword.equals(getString(R.string.testsModuleLabel))) {
activity = new Intent(getBaseContext(), activity = new Intent(getBaseContext(), Tests.class);
Tests.class); startActivityForResult(activity, Global.TESTS_REQUEST_CODE);
startActivityForResult(activity, Global.TESTS_REQUEST_CODE);
/*Toast.makeText(this, keyword + " aún no implementado", Toast.LENGTH_LONG) /*Toast.makeText(this, keyword + " aún no implementado", Toast.LENGTH_LONG)
.show();*/ .show();*/
} }