summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRuben Brunk <rubenbrunk@google.com>2013-04-01 17:26:42 -0700
committerRuben Brunk <rubenbrunk@google.com>2013-04-01 17:26:42 -0700
commite7aa98e533531f5e82f5de37c24701bc44bc6cd1 (patch)
treecc361ade30ad89c1819a79d8bb1f826c05034c4b
parent902a6f7f6bea14b22fe16f61c55e7ca6306cc210 (diff)
downloadandroid_packages_apps_Gallery2-e7aa98e533531f5e82f5de37c24701bc44bc6cd1.tar.gz
android_packages_apps_Gallery2-e7aa98e533531f5e82f5de37c24701bc44bc6cd1.tar.bz2
android_packages_apps_Gallery2-e7aa98e533531f5e82f5de37c24701bc44bc6cd1.zip
Changed editor back button behavior.
Bug: 8522150 Change-Id: I803054138df931c4c48ef03930afe79e272f0d4b
-rw-r--r--src/com/android/gallery3d/filtershow/FilterShowActivity.java9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/com/android/gallery3d/filtershow/FilterShowActivity.java b/src/com/android/gallery3d/filtershow/FilterShowActivity.java
index 3cd4262fa..dbf26e448 100644
--- a/src/com/android/gallery3d/filtershow/FilterShowActivity.java
+++ b/src/com/android/gallery3d/filtershow/FilterShowActivity.java
@@ -1005,17 +1005,12 @@ public class FilterShowActivity extends Activity implements OnItemClickListener,
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();
}
}
}