Changed editor back button behavior.
Bug: 8522150
Change-Id: I803054138df931c4c48ef03930afe79e272f0d4b
diff --git a/src/com/android/gallery3d/filtershow/FilterShowActivity.java b/src/com/android/gallery3d/filtershow/FilterShowActivity.java
index 3cd4262..dbf26e4 100644
--- a/src/com/android/gallery3d/filtershow/FilterShowActivity.java
+++ b/src/com/android/gallery3d/filtershow/FilterShowActivity.java
@@ -1005,17 +1005,12 @@
saveImage();
}
});
- builder.setNeutralButton(R.string.exit, new DialogInterface.OnClickListener() {
+ builder.setNegativeButton(R.string.exit, new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int id) {
done();
}
});
- builder.setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() {
- public void onClick(DialogInterface dialog, int id) {
- }
- });
-
- AlertDialog dialog = builder.show();
+ builder.show();
}
}
}