diff options
| author | Ruben Brunk <rubenbrunk@google.com> | 2013-04-22 10:53:08 -0700 |
|---|---|---|
| committer | Ruben Brunk <rubenbrunk@google.com> | 2013-04-22 10:53:08 -0700 |
| commit | 87151ce304c45d67e1e578816edb864b95d09edf (patch) | |
| tree | 6de2ac6c105934fee8c11e99eae9845f4bb1fe30 /src/com | |
| parent | 608f7c9843f48aeccc1678622dc3327958150c31 (diff) | |
| download | android_packages_apps_Gallery2-87151ce304c45d67e1e578816edb864b95d09edf.tar.gz android_packages_apps_Gallery2-87151ce304c45d67e1e578816edb864b95d09edf.tar.bz2 android_packages_apps_Gallery2-87151ce304c45d67e1e578816edb864b95d09edf.zip | |
Fix orientation changes for wallpaper setter.
Bug: 8670036
Change-Id: I44932bcc8cd8b89686186e42fa1eb2644af87b47
Diffstat (limited to 'src/com')
| -rw-r--r-- | src/com/android/gallery3d/filtershow/crop/CropActivity.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/com/android/gallery3d/filtershow/crop/CropActivity.java b/src/com/android/gallery3d/filtershow/crop/CropActivity.java index 3429e0baf..73064ea50 100644 --- a/src/com/android/gallery3d/filtershow/crop/CropActivity.java +++ b/src/com/android/gallery3d/filtershow/crop/CropActivity.java @@ -21,6 +21,7 @@ import android.app.Activity; import android.app.WallpaperManager; import android.content.Context; import android.content.Intent; +import android.content.res.Configuration; import android.graphics.Bitmap; import android.graphics.Bitmap.CompressFormat; import android.graphics.BitmapFactory; @@ -124,6 +125,12 @@ public class CropActivity extends Activity { super.onDestroy(); } + @Override + public void onConfigurationChanged (Configuration newConfig) { + super.onConfigurationChanged(newConfig); + mCropView.configChanged(); + } + /** * Opens a selector in Gallery to chose an image for use when none was given * in the CROP intent. |
