OSDN Git Service

Fixes #1977560. Prevents NPE when rotating the gestures activity.
authorRomain Guy <romainguy@android.com>
Tue, 14 Jul 2009 20:18:51 +0000 (13:18 -0700)
committerRomain Guy <romainguy@android.com>
Tue, 14 Jul 2009 20:18:51 +0000 (13:18 -0700)
src/com/android/launcher/GesturesActivity.java

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