summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornicolasroard <nicolasroard@google.com>2012-10-23 14:33:55 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2012-10-23 14:33:55 -0700
commite77c489a1922e52b115e0901bce0cb069c7b46d3 (patch)
tree984b50a83c38022110c91d78a57df5ec7642702f
parent23c9238a22714cd520460a409ef426ef038aadda (diff)
parent1b5ec22976ca5182a16228bc5ca1b12130923856 (diff)
downloadandroid_packages_apps_Snap-e77c489a1922e52b115e0901bce0cb069c7b46d3.tar.gz
android_packages_apps_Snap-e77c489a1922e52b115e0901bce0cb069c7b46d3.tar.bz2
android_packages_apps_Snap-e77c489a1922e52b115e0901bce0cb069c7b46d3.zip
am ea636029: Merge "Hide the history panel on rotation" into gb-ub-photos-arches
* commit 'ea6360298ca823634c9f2ee8990546f753288da9': Hide the history panel on rotation
-rw-r--r--src/com/android/gallery3d/filtershow/FilterShowActivity.java18
1 files changed, 14 insertions, 4 deletions
diff --git a/src/com/android/gallery3d/filtershow/FilterShowActivity.java b/src/com/android/gallery3d/filtershow/FilterShowActivity.java
index 69a9f11d9..c8c7421f1 100644
--- a/src/com/android/gallery3d/filtershow/FilterShowActivity.java
+++ b/src/com/android/gallery3d/filtershow/FilterShowActivity.java
@@ -22,6 +22,7 @@ import android.app.Activity;
import android.app.ProgressDialog;
import android.content.ContentValues;
import android.content.Intent;
+import android.content.res.Configuration;
import android.content.res.Resources;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
@@ -277,7 +278,7 @@ public class FilterShowActivity extends Activity implements OnItemClickListener,
listColors.removeView(v);
filters[i].setParameter(filters[i].getPreviewParameter());
- if(v instanceof ImageButtonTitle)
+ if (v instanceof ImageButtonTitle)
filters[i].setName(((ImageButtonTitle) v).getText());
fView.setImageFilter(filters[i]);
fView.setController(this);
@@ -295,7 +296,7 @@ public class FilterShowActivity extends Activity implements OnItemClickListener,
R.drawable.filtershow_button_colors_sharpen,
R.drawable.filtershow_button_colors_curve
};
- int []overlayNames = {
+ int[] overlayNames = {
R.string.sharpness,
R.string.curvesRGB
};
@@ -367,7 +368,7 @@ public class FilterShowActivity extends Activity implements OnItemClickListener,
}
String action = intent.getAction();
- if (action.equalsIgnoreCase(CROP_ACTION)){
+ if (action.equalsIgnoreCase(CROP_ACTION)) {
mPanelController.showComponent(findViewById(R.id.cropButton));
} else if (action.equalsIgnoreCase(TINY_PLANET_ACTION)) {
mPanelController.showComponent(findViewById(R.id.tinyplanetButton));
@@ -586,7 +587,7 @@ public class FilterShowActivity extends Activity implements OnItemClickListener,
filter.setSelected(true);
mCurrentImageSmallFilter = filter;
- filter.setImageFilter(new ImageFilterFx(null,getString(R.string.none)));
+ filter.setImageFilter(new ImageFilterFx(null, getString(R.string.none)));
filter.setController(this);
filter.setImageLoader(mImageLoader);
@@ -726,6 +727,15 @@ public class FilterShowActivity extends Activity implements OnItemClickListener,
invalidateOptionsMenu();
}
+ @Override
+ public void onConfigurationChanged(Configuration newConfig)
+ {
+ super.onConfigurationChanged(newConfig);
+ if (mShowingHistoryPanel) {
+ toggleHistoryPanel();
+ }
+ }
+
// //////////////////////////////////////////////////////////////////////////////
// history panel...