am 6f227eba: Fixes #1977560. Prevents NPE when rotating the gestures activity.

Merge commit '6f227eba4bdf96102e6dda24ff6c9961a6c41c38'

* commit '6f227eba4bdf96102e6dda24ff6c9961a6c41c38':
  Fixes #1977560. Prevents NPE when rotating the gestures activity.
This commit is contained in:
Romain Guy 2009-07-14 13:21:34 -07:00 committed by The Android Open Source Project
commit 2cef9ae6c8
1 changed files with 1 additions and 1 deletions

View File

@ -167,7 +167,7 @@ public class GesturesActivity extends ListActivity {
@Override @Override
protected void onPrepareDialog(int id, Dialog dialog) { protected void onPrepareDialog(int id, Dialog dialog) {
super.onPrepareDialog(id, dialog); super.onPrepareDialog(id, dialog);
if (id == DIALOG_RENAME_GESTURE) { if (id == DIALOG_RENAME_GESTURE && mCurrentRenameInfo != null) {
mInput.setText(mCurrentRenameInfo.title); mInput.setText(mCurrentRenameInfo.title);
} }
} }