summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdnan Begovic <adnan@cyngn.com>2016-03-25 10:54:02 -0700
committerAdnan Begovic <adnan@cyngn.com>2016-03-25 10:54:02 -0700
commitf69eb01be834be1e9dff4a6273ebb8fa91f0064e (patch)
tree33e836782045afafe0bae3ba887778fb96954107
parentc5f2a6201b07ae5dd23cc1d3b3ed38b9a7468521 (diff)
downloadpackages_apps_ThemeChooser-f69eb01be834be1e9dff4a6273ebb8fa91f0064e.zip
packages_apps_ThemeChooser-f69eb01be834be1e9dff4a6273ebb8fa91f0064e.tar.gz
packages_apps_ThemeChooser-f69eb01be834be1e9dff4a6273ebb8fa91f0064e.tar.bz2
ThemeChooser: Update for Theme api changes.
TICKET: CYNGNOS-2295 Change-Id: I4d0000ed97aedcaa1e91f7be3d55ece78eea0103
-rw-r--r--src/com/cyngn/theme/chooser/ThemeFragment.java2
-rw-r--r--src/com/cyngn/theme/perapptheming/PerAppThemingWindow.java4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/com/cyngn/theme/chooser/ThemeFragment.java b/src/com/cyngn/theme/chooser/ThemeFragment.java
index a106fa6..5ca238f 100644
--- a/src/com/cyngn/theme/chooser/ThemeFragment.java
+++ b/src/com/cyngn/theme/chooser/ThemeFragment.java
@@ -1240,7 +1240,7 @@ public class ThemeFragment extends Fragment implements LoaderManager.LoaderCallb
}
protected ThemeManager getThemeManager() {
- return ThemeManager.getInstance();
+ return ThemeManager.getInstance(getActivity());
}
private void freeMediaPlayers() {
diff --git a/src/com/cyngn/theme/perapptheming/PerAppThemingWindow.java b/src/com/cyngn/theme/perapptheming/PerAppThemingWindow.java
index 0b85557..64245d0 100644
--- a/src/com/cyngn/theme/perapptheming/PerAppThemingWindow.java
+++ b/src/com/cyngn/theme/perapptheming/PerAppThemingWindow.java
@@ -330,7 +330,7 @@ public class PerAppThemingWindow extends Service implements OnTouchListener,
@Override
public void onFinish(boolean isSuccess) {
- ThemeManager tm = ThemeManager.getInstance();
+ ThemeManager tm = ThemeManager.getInstance(getContext());
tm.removeClient(this);
mThemeListLayout.postDelayed(new Runnable() {
@Override
@@ -772,7 +772,7 @@ public class PerAppThemingWindow extends Service implements OnTouchListener,
hideThemeList(true, new Runnable() {
@Override
public void run() {
- ThemeManager tm = ThemeManager.getInstance();
+ ThemeManager tm = ThemeManager.getInstance(getContext());
ThemeChangeRequest.Builder builder = new ThemeChangeRequest.Builder();
builder.setAppOverlay(appPkgName, themePkgName);
tm.addClient(PerAppThemingWindow.this);