OSDN Git Service

fix undo bug
authorJohn Hoford <hoford@google.com>
Wed, 6 Mar 2013 20:26:37 +0000 (12:26 -0800)
committerJohn Hoford <hoford@google.com>
Wed, 6 Mar 2013 20:26:37 +0000 (12:26 -0800)
bug:8319433
Change-Id: If6bea005677b63267130d446e7b0298d21bbb3be

src/com/android/gallery3d/filtershow/FilterShowActivity.java

index 518563a..4230d59 100644 (file)
@@ -700,6 +700,7 @@ public class FilterShowActivity extends Activity implements OnItemClickListener,
     public boolean onOptionsItemSelected(MenuItem item) {
         switch (item.getItemId()) {
             case R.id.undoButton: {
+                mPanelController.resetParameters();
                 HistoryAdapter adapter = mMasterImage.getHistory();
                 int position = adapter.undo();
                 mMasterImage.onHistoryItemClick(position);