summaryrefslogtreecommitdiffstats
path: root/src_pd
diff options
context:
space:
mode:
authornicolasroard <nicolasroard@google.com>2013-04-10 15:20:26 (GMT)
committernicolasroard <nicolasroard@google.com>2013-04-10 15:20:26 (GMT)
commit326cc9a7939046476d8fa44c9f31c6e0c388a233 (patch)
tree035a8e64b565ad40e231fb37e498d36a793f794a /src_pd
parent30ddbfb5277d3f538b12209877fffaffc9b66835 (diff)
downloadandroid_packages_apps_Snap-326cc9a7939046476d8fa44c9f31c6e0c388a233.zip
android_packages_apps_Snap-326cc9a7939046476d8fa44c9f31c6e0c388a233.tar.gz
android_packages_apps_Snap-326cc9a7939046476d8fa44c9f31c6e0c388a233.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);
+ }
}