summaryrefslogtreecommitdiffstats
path: root/src_pd
diff options
context:
space:
mode:
authornicolasroard <nicolasroard@google.com>2013-04-10 08:20:26 -0700
committernicolasroard <nicolasroard@google.com>2013-04-10 08:20:26 -0700
commit3bc806a8575072c9459fe3698675d3713300d1d3 (patch)
treec984b5772807ada64fc861d1fd0583bd1ecbbd99 /src_pd
parente29b57330be471dd74672a7bdc74a93dcae3a98b (diff)
downloadandroid_packages_apps_Gallery2-3bc806a8575072c9459fe3698675d3713300d1d3.zip
android_packages_apps_Gallery2-3bc806a8575072c9459fe3698675d3713300d1d3.tar.gz
android_packages_apps_Gallery2-3bc806a8575072c9459fe3698675d3713300d1d3.tar.bz2
Small cleanup in setting resources
Change-Id: Icd275aaddcee59a578f916c57903012ce35469ad
Diffstat (limited to 'src_pd')
-rw-r--r--src_pd/com/android/gallery3d/filtershow/filters/FiltersManager.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/src_pd/com/android/gallery3d/filtershow/filters/FiltersManager.java b/src_pd/com/android/gallery3d/filtershow/filters/FiltersManager.java
index 910627a..9de9b7b 100644
--- a/src_pd/com/android/gallery3d/filtershow/filters/FiltersManager.java
+++ b/src_pd/com/android/gallery3d/filtershow/filters/FiltersManager.java
@@ -16,6 +16,8 @@
package com.android.gallery3d.filtershow.filters;
+import android.content.res.Resources;
+
import java.util.HashMap;
import java.util.Vector;
@@ -55,4 +57,9 @@ public class FiltersManager extends BaseFiltersManager {
sHighresInstance = null;
}
+ public static void setResources(Resources resources) {
+ FiltersManager.getManager().setFilterResources(resources);
+ FiltersManager.getPreviewManager().setFilterResources(resources);
+ FiltersManager.getHighresManager().setFilterResources(resources);
+ }
}