Refactored code
This commit is contained in:
parent
5eb8f91647
commit
862ab99afd
|
@ -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();*/
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user