Skip to content

Commit f4becfa

Browse files
Jeremy SilverAsser
authored andcommitted
Fix up todo in 06.01
1 parent 5d3dad5 commit f4becfa

File tree

2 files changed

+6
-6
lines changed
  • Lesson06-Visualizer-Preferences

2 files changed

+6
-6
lines changed

Lesson06-Visualizer-Preferences/T06.01-Exercise-SetupTheActivity/app/src/main/java/android/example/com/visualizerpreferences/VisualizerActivity.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,9 +119,9 @@ public void onRequestPermissionsResult(int requestCode,
119119
// activity_settings.xml layout file as well and add the activity to the manifest
120120

121121
// TODO (2) Add a new resource folder called menu and create visualizer_menu.xml
122-
// TODO (3) In visualizer_menu.xml create a menu item with a single item. The id and title
123-
// should be saved in strings.xml, it should never be shown as an action,
124-
// orderInCategory should be 100
122+
// TODO (3) In visualizer_menu.xml create a menu item with a single item. The id should be
123+
// action_settings, the id and title should be saved in strings.xml, the item should never
124+
// be shown as an action, and orderInCategory should be 100
125125

126126
// TODO (5) Add the menu to the menu bar
127127
// TODO (6) When the "Settings" menu item is pressed, open SettingsActivity

Lesson06-Visualizer-Preferences/T06.01-Solution-SetupTheActivity/app/src/main/res/menu/visualizer_menu.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!-- COMPLETED (2) Add a new resource folder called menu and create visualizer_menu.xml -->
3-
<!-- COMPLETED (3) In visualizer_menu.xml create a menu item with a single item. The id and title
4-
should be saved in strings.xml, it should never be shown as an action,
5-
orderInCategory should be 100 -->
3+
<!-- COMPLETED (3) In visualizer_menu.xml create a menu item with a single item. The id should be
4+
action_settings, the id and title should be saved in strings.xml, the item should never
5+
be shown as an action, and orderInCategory should be 100 -->
66
<menu xmlns:android="http://schemas.android.com/apk/res/android"
77
xmlns:app="http://schemas.android.com/apk/res-auto">
88
<item

0 commit comments

Comments
 (0)