summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAdnan Begovic <adnan@cyngn.com>2016-03-25 17:58:00 (GMT)
committerAdnan Begovic <adnan@cyngn.com>2016-03-25 17:58:00 (GMT)
commite7d94a65ebef637302448354028fb5c5d1df1a83 (patch)
treedacec5df0868a5516348d89c97229a3b08c4ffcd /src
parent9fa9b69ea65efcc415cef935e387120e098d1919 (diff)
downloadandroid_packages_providers_ThemesProvider-e7d94a65ebef637302448354028fb5c5d1df1a83.zip
android_packages_providers_ThemesProvider-e7d94a65ebef637302448354028fb5c5d1df1a83.tar.gz
android_packages_providers_ThemesProvider-e7d94a65ebef637302448354028fb5c5d1df1a83.tar.bz2
ThemesProvider: Update for themes api changes.
Change-Id: I9d2827fccb4665da22303024ece61d42596a0ca3 TICKET: CYNGNOS-2295
Diffstat (limited to 'src')
-rw-r--r--src/org/cyanogenmod/themes/provider/ThemePackageHelper.java4
-rw-r--r--src/org/cyanogenmod/themes/provider/ThemesProvider.java2
-rw-r--r--src/org/cyanogenmod/themes/provider/util/ProviderUtils.java2
3 files changed, 4 insertions, 4 deletions
diff --git a/src/org/cyanogenmod/themes/provider/ThemePackageHelper.java b/src/org/cyanogenmod/themes/provider/ThemePackageHelper.java
index 06020a1..5479229 100644
--- a/src/org/cyanogenmod/themes/provider/ThemePackageHelper.java
+++ b/src/org/cyanogenmod/themes/provider/ThemePackageHelper.java
@@ -276,7 +276,7 @@ public class ThemePackageHelper {
mixnmatch.close();
builder.setRequestType(RequestType.THEME_REMOVED);
- ThemeManager manager = ThemeManager.getInstance();
+ ThemeManager manager = ThemeManager.getInstance(context);
manager.requestThemeChange(builder.build(), false);
// Delete the theme from the db
@@ -410,7 +410,7 @@ public class ThemePackageHelper {
}
builder.setRequestType(RequestType.THEME_UPDATED);
- ThemeManager manager = ThemeManager.getInstance();
+ ThemeManager manager = ThemeManager.getInstance(context);
manager.requestThemeChange(builder.build(), false);
}
}
diff --git a/src/org/cyanogenmod/themes/provider/ThemesProvider.java b/src/org/cyanogenmod/themes/provider/ThemesProvider.java
index 12ea396..930517f 100644
--- a/src/org/cyanogenmod/themes/provider/ThemesProvider.java
+++ b/src/org/cyanogenmod/themes/provider/ThemesProvider.java
@@ -597,7 +597,7 @@ public class ThemesProvider extends ContentProvider {
builder.setRequestType(RequestType.THEME_REMOVED);
ThemeChangeRequest request = builder.build();
if (request.getNumChangesRequested() > 0) {
- ThemeManager mService = ThemeManager.getInstance();
+ ThemeManager mService = ThemeManager.getInstance(getContext());
mService.requestThemeChange(request, false);
}
diff --git a/src/org/cyanogenmod/themes/provider/util/ProviderUtils.java b/src/org/cyanogenmod/themes/provider/util/ProviderUtils.java
index d5771f3..6b8a9e3 100644
--- a/src/org/cyanogenmod/themes/provider/util/ProviderUtils.java
+++ b/src/org/cyanogenmod/themes/provider/util/ProviderUtils.java
@@ -64,7 +64,7 @@ public class ProviderUtils {
* @return True if the theme is being processed or queued up for processing
*/
public static boolean isThemeBeingProcessed(Context context, String pkgName) {
- ThemeManager tm = ThemeManager.getInstance();
+ ThemeManager tm = ThemeManager.getInstance(context);
return tm.isThemeBeingProcessed(pkgName);
}