diff options
author | John Hoford <hoford@google.com> | 2013-03-11 11:10:22 -0700 |
---|---|---|
committer | John Hoford <hoford@google.com> | 2013-03-11 14:22:57 -0700 |
commit | 887bde65742747aea7ab6dcf7c300ca8ec1f1ebf (patch) | |
tree | 0b838d6082f342154cdc55f625ad993cb43533af /src/com/android/gallery3d/filtershow/FilterShowActivity.java | |
parent | b1aeb3963fb67b1ea251cb5f7790b2d2f8261a0c (diff) | |
download | android_packages_apps_Snap-887bde65742747aea7ab6dcf7c300ca8ec1f1ebf.tar.gz android_packages_apps_Snap-887bde65742747aea7ab6dcf7c300ca8ec1f1ebf.tar.bz2 android_packages_apps_Snap-887bde65742747aea7ab6dcf7c300ca8ec1f1ebf.zip |
refactoring to make Editor classes do more
Change-Id: Id0885929cf3a9410bd0e5d3bf96eb99e8c7e1cf9
Diffstat (limited to 'src/com/android/gallery3d/filtershow/FilterShowActivity.java')
-rw-r--r-- | src/com/android/gallery3d/filtershow/FilterShowActivity.java | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/com/android/gallery3d/filtershow/FilterShowActivity.java b/src/com/android/gallery3d/filtershow/FilterShowActivity.java index 10650b9e6..37115a5f7 100644 --- a/src/com/android/gallery3d/filtershow/FilterShowActivity.java +++ b/src/com/android/gallery3d/filtershow/FilterShowActivity.java @@ -210,19 +210,11 @@ public class FilterShowActivity extends Activity implements OnItemClickListener, ((ViewStub) findViewById(R.id.statePanelStub)).inflate(); setupHistoryPanel(); setupStatePanel(); - - mPanelController.setRowPanel(findViewById(R.id.secondRowPanel)); - mPanelController.setUtilityPanel(this, findViewById(R.id.filterButtonsList), - findViewById(R.id.panelAccessoryViewList), - findViewById(R.id.applyEffect)); - - mPanelController.setCurrentPanel(R.id.fxButton); } public void setupHistoryPanel() { findViewById(R.id.resetOperationsButton).setOnClickListener( createOnClickResetOperationsButton()); - ListView operationsList = (ListView) findViewById(R.id.operationsList); operationsList.setAdapter(mMasterImage.getHistory()); operationsList.setOnItemClickListener(this); @@ -232,6 +224,9 @@ public class FilterShowActivity extends Activity implements OnItemClickListener, ListView imageStateList = (ListView) findViewById(R.id.imageStateList); imageStateList.setAdapter(mMasterImage.getState()); mImageLoader.setAdapter(mMasterImage.getHistory()); + mPanelController.setRowPanel(findViewById(R.id.secondRowPanel)); + mPanelController.setUtilityPanel(this, findViewById(R.id.filterButtonsList)); + mPanelController.setCurrentPanel(R.id.fxButton); } private void fillPanel(Vector<FilterRepresentation> representations, int layoutId, int buttonId) { |