summaryrefslogtreecommitdiff
path: root/tutorials/NotepadCodeLab/Notepadv3Solution/src/com/android/demo/notepad3/NoteEdit.java
diff options
context:
space:
mode:
authorTom O'Neill <tomo@google.com>2010-01-06 16:32:14 -0800
committerAndroid (Google) Code Review <android-gerrit@google.com>2010-01-06 16:32:14 -0800
commitf1474e5399192d2eea8ee3a497575057356abc9c (patch)
treef5f4c6f5544c8bfe3d0a6b3346fc6e6e2824a021 /tutorials/NotepadCodeLab/Notepadv3Solution/src/com/android/demo/notepad3/NoteEdit.java
parentee2721ed67b4fac1690ec4cfb3b7a21b52927295 (diff)
parent1c66b17d88f4c9dc0f3e7529320f1900be2edb8b (diff)
Merge "Match the tutorial documentation more closely"
Diffstat (limited to 'tutorials/NotepadCodeLab/Notepadv3Solution/src/com/android/demo/notepad3/NoteEdit.java')
-rwxr-xr-xtutorials/NotepadCodeLab/Notepadv3Solution/src/com/android/demo/notepad3/NoteEdit.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/tutorials/NotepadCodeLab/Notepadv3Solution/src/com/android/demo/notepad3/NoteEdit.java b/tutorials/NotepadCodeLab/Notepadv3Solution/src/com/android/demo/notepad3/NoteEdit.java
index eabb07a4e..b86478452 100755
--- a/tutorials/NotepadCodeLab/Notepadv3Solution/src/com/android/demo/notepad3/NoteEdit.java
+++ b/tutorials/NotepadCodeLab/Notepadv3Solution/src/com/android/demo/notepad3/NoteEdit.java
@@ -35,13 +35,14 @@ public class NoteEdit extends Activity {
super.onCreate(savedInstanceState);
mDbHelper = new NotesDbAdapter(this);
mDbHelper.open();
- setContentView(R.layout.note_edit);
+ setContentView(R.layout.note_edit);
mTitleText = (EditText) findViewById(R.id.title);
mBodyText = (EditText) findViewById(R.id.body);
Button confirmButton = (Button) findViewById(R.id.confirm);
+
mRowId = (savedInstanceState == null) ? null :
(Long) savedInstanceState.getSerializable(NotesDbAdapter.KEY_ROWID);
if (mRowId == null) {