diff options
author | Danesh M <daneshm90@gmail.com> | 2015-09-09 17:51:27 -0700 |
---|---|---|
committer | Gerrit Code Review <gerrit@cyanogenmod.org> | 2015-09-14 10:47:17 -0700 |
commit | a5aa75d6ac958822e145b61e7c475bd1dc1b5260 (patch) | |
tree | 2bdad1ca02b17e4fef67d0fa30bc323ebd9cfb5e /res | |
parent | 78aee6b67dd0e9483a4994bef8b7cb4c1a9fdb78 (diff) | |
download | android_packages_apps_Gallery2-a5aa75d6ac958822e145b61e7c475bd1dc1b5260.tar.gz android_packages_apps_Gallery2-a5aa75d6ac958822e145b61e7c475bd1dc1b5260.tar.bz2 android_packages_apps_Gallery2-a5aa75d6ac958822e145b61e7c475bd1dc1b5260.zip |
Gallery3d : Fix CROP_ACTION for third party apps
Certain apps such as google photos, don't respect
return-data true, since the bitmap could be very large.
Switch to a file provider to pass the external apps a uri
to write cropped results to.
Change-Id: I9ec8b8defaffa3d9fa0c2cdfd68422eeff5aef84
Diffstat (limited to 'res')
-rw-r--r-- | res/xml/file_paths.xml | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/res/xml/file_paths.xml b/res/xml/file_paths.xml new file mode 100644 index 000000000..28d186477 --- /dev/null +++ b/res/xml/file_paths.xml @@ -0,0 +1,18 @@ +<!-- + Copyright (C) 2012-2015 The CyanogenMod Project + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> +<paths xmlns:android="http://schemas.android.com/apk/res/android"> + <cache-path name="cropped_image"/> +</paths> |