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.
diff --git a/src/com/android/launcher/GesturesActivity.java b/src/com/android/launcher/GesturesActivity.java
index 3ea49e2..844392d 100644
--- a/src/com/android/launcher/GesturesActivity.java
+++ b/src/com/android/launcher/GesturesActivity.java
@@ -167,7 +167,7 @@
@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);
}
}