Skip to content

Commit 61ea762

Browse files
committed
Fixes
1 parent 91dbbec commit 61ea762

6 files changed

Lines changed: 2 additions & 90 deletions

File tree

source-code/app/src/main/java/org/buildmlearn/toolkit/activity/AboutBuildmLearn.java

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -27,31 +27,4 @@ protected void onCreate(Bundle savedInstanceState) {
2727

2828
}
2929

30-
/**
31-
* {@inheritDoc}
32-
*/
33-
@Override
34-
public boolean onCreateOptionsMenu(Menu menu) {
35-
// Inflate the menu; this adds items to the action bar if it is present.
36-
getMenuInflater().inflate(R.menu.menu_about_buildm_learn, menu);
37-
return true;
38-
}
39-
40-
/**
41-
* {@inheritDoc}
42-
*/
43-
@Override
44-
public boolean onOptionsItemSelected(MenuItem item) {
45-
// Handle action bar item clicks here. The action bar will
46-
// automatically handle clicks on the Home/Up button, so long
47-
// as you specify a parent activity in AndroidManifest.xml.
48-
int id = item.getItemId();
49-
50-
//noinspection SimplifiableIfStatement
51-
if (id == R.id.action_settings) {
52-
return true;
53-
}
54-
55-
return super.onOptionsItemSelected(item);
56-
}
5730
}

source-code/app/src/main/java/org/buildmlearn/toolkit/activity/TemplateActivity.java

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -49,31 +49,4 @@ public void onItemClick(AdapterView<?> parent, View view, int position, long id)
4949
});
5050
}
5151

52-
/**
53-
* {@inheritDoc}
54-
*/
55-
@Override
56-
public boolean onCreateOptionsMenu(Menu menu) {
57-
// Inflate the menu; this adds items to the action bar if it is present.
58-
getMenuInflater().inflate(R.menu.menu_template, menu);
59-
return true;
60-
}
61-
62-
/**
63-
* {@inheritDoc}
64-
*/
65-
@Override
66-
public boolean onOptionsItemSelected(MenuItem item) {
67-
// Handle action bar item clicks here. The action bar will
68-
// automatically handle clicks on the Home/Up button, so long
69-
// as you specify a parent activity in AndroidManifest.xml.
70-
int id = item.getItemId();
71-
72-
//noinspection SimplifiableIfStatement
73-
if (id == R.id.action_settings) {
74-
return true;
75-
}
76-
77-
return super.onOptionsItemSelected(item);
78-
}
7952
}

source-code/app/src/main/java/org/buildmlearn/toolkit/simulator/Simulator.java

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ protected void onCreate(Bundle savedInstanceState) {
5555
@Override
5656
public boolean onCreateOptionsMenu(Menu menu) {
5757
// Inflate the menu; this adds items to the action bar if it is present.
58-
getMenuInflater().inflate(R.menu.menu_simulator, menu);
58+
// getMenuInflater().inflate(R.menu.menu_simulator, menu);
5959
return true;
6060
}
6161

@@ -69,12 +69,7 @@ public boolean onOptionsItemSelected(MenuItem item) {
6969
// as you specify a parent activity in AndroidManifest.xml.
7070
int id = item.getItemId();
7171

72-
//noinspection SimplifiableIfStatement
73-
if (id == R.id.action_settings) {
74-
return true;
75-
} else if (id == android.R.id.home) {
76-
onBackPressed();
77-
}
72+
onBackPressed();
7873

7974
return super.onOptionsItemSelected(item);
8075
}

source-code/app/src/main/res/menu/menu_about_buildm_learn.xml

Lines changed: 0 additions & 9 deletions
This file was deleted.

source-code/app/src/main/res/menu/menu_simulator.xml

Lines changed: 0 additions & 10 deletions
This file was deleted.

source-code/app/src/main/res/menu/menu_template.xml

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)