From f69eb01be834be1e9dff4a6273ebb8fa91f0064e Mon Sep 17 00:00:00 2001 From: Adnan Begovic Date: Fri, 25 Mar 2016 10:54:02 -0700 Subject: ThemeChooser: Update for Theme api changes. TICKET: CYNGNOS-2295 Change-Id: I4d0000ed97aedcaa1e91f7be3d55ece78eea0103 --- src/com/cyngn/theme/chooser/ThemeFragment.java | 2 +- src/com/cyngn/theme/perapptheming/PerAppThemingWindow.java | 4 ++-- 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); -- cgit v1.1