Skip to content
This repository was archived by the owner on Jun 27, 2020. It is now read-only.

Commit 1233d0d

Browse files
Removed actions from action bar. 30m.
1 parent de08395 commit 1233d0d

File tree

4 files changed

+0
-22
lines changed

4 files changed

+0
-22
lines changed

app/src/main/java/com/blogspot/e_kanivets/moneytracker/activity/NavDrawerActivity.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,6 @@ public boolean onCreateOptionsMenu(Menu menu) {
101101
// Only show items in the action bar relevant to this screen
102102
// if the drawer is not showing. Otherwise, let the drawer
103103
// decide what to show in the action bar.
104-
getMenuInflater().inflate(R.menu.nav_drawer, menu);
105104
restoreActionBar();
106105
return true;
107106
}
@@ -115,11 +114,6 @@ public boolean onOptionsItemSelected(MenuItem item) {
115114
// as you specify a parent activity in AndroidManifest.xml.
116115
int id = item.getItemId();
117116

118-
//noinspection SimplifiableIfStatement
119-
if (id == R.id.action_settings) {
120-
return true;
121-
}
122-
123117
return super.onOptionsItemSelected(item);
124118
}
125119
}

app/src/main/java/com/blogspot/e_kanivets/moneytracker/fragment/NavigationDrawerFragment.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -250,11 +250,6 @@ public boolean onOptionsItemSelected(MenuItem item) {
250250
return true;
251251
}
252252

253-
if (item.getItemId() == R.id.action_example) {
254-
Toast.makeText(getActivity(), "Example action.", Toast.LENGTH_SHORT).show();
255-
return true;
256-
}
257-
258253
return super.onOptionsItemSelected(item);
259254
}
260255

app/src/main/res/menu/global.xml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
<menu xmlns:android="http://schemas.android.com/apk/res/android"
22
xmlns:app="http://schemas.android.com/apk/res-auto">
3-
<item android:id="@+id/action_settings" android:title="@string/action_settings"
4-
android:orderInCategory="100" app:showAsAction="never" />
53
</menu>

app/src/main/res/menu/nav_drawer.xml

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

0 commit comments

Comments
 (0)