diff options
author | Tom O'Neill <tomo@google.com> | 2009-12-17 11:20:00 -0800 |
---|---|---|
committer | Tom O'Neill <tomo@google.com> | 2009-12-17 11:20:00 -0800 |
commit | 1c66b17d88f4c9dc0f3e7529320f1900be2edb8b (patch) | |
tree | b97af6f353298891d10bd58b21685a957be7f91b /tutorials/NotepadCodeLab/Notepadv3Solution | |
parent | 068f3dd6a112fe3311ace2fe98458a0176bed562 (diff) | |
download | android_development-1c66b17d88f4c9dc0f3e7529320f1900be2edb8b.tar.gz android_development-1c66b17d88f4c9dc0f3e7529320f1900be2edb8b.tar.bz2 android_development-1c66b17d88f4c9dc0f3e7529320f1900be2edb8b.zip |
Match the tutorial documentation more closely
Just undoing some white space changes that my previous CL introduced, in
order to keep the formatting the same between the tutorial documentation
and the actual code.
Diffstat (limited to 'tutorials/NotepadCodeLab/Notepadv3Solution')
-rwxr-xr-x | tutorials/NotepadCodeLab/Notepadv3Solution/src/com/android/demo/notepad3/NoteEdit.java | 3 |
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) { |