From a79a53b8ea6aa1440a69e09ada0f380771345ab9 Mon Sep 17 00:00:00 2001 From: Adnan Begovic Date: Fri, 9 Oct 2015 14:34:14 -0700 Subject: cmsdk: mContext is private with SystemService now. YOU MEAN WE HAVE SANE ABSTRACTION NOW?! Change-Id: I5b37b656b2002013b368b43153927b796ec46e6a --- .../org/cyanogenmod/platform/internal/AppSuggestManagerService.java | 2 ++ .../org/cyanogenmod/platform/internal/CMStatusBarManagerService.java | 2 ++ .../org/cyanogenmod/platform/internal/CMTelephonyManagerService.java | 2 ++ 3 files changed, 6 insertions(+) diff --git a/cm/lib/main/java/org/cyanogenmod/platform/internal/AppSuggestManagerService.java b/cm/lib/main/java/org/cyanogenmod/platform/internal/AppSuggestManagerService.java index d7a6ad4..345a164 100644 --- a/cm/lib/main/java/org/cyanogenmod/platform/internal/AppSuggestManagerService.java +++ b/cm/lib/main/java/org/cyanogenmod/platform/internal/AppSuggestManagerService.java @@ -40,6 +40,7 @@ public class AppSuggestManagerService extends SystemService { public static final String ACTION = "org.cyanogenmod.app.suggest"; private AppSuggestProviderInterface mImpl; + private Context mContext; private final IBinder mService = new IAppSuggestManager.Stub() { public boolean handles(Intent intent) { @@ -57,6 +58,7 @@ public class AppSuggestManagerService extends SystemService { public AppSuggestManagerService(Context context) { super(context); + mContext = context; } @Override diff --git a/cm/lib/main/java/org/cyanogenmod/platform/internal/CMStatusBarManagerService.java b/cm/lib/main/java/org/cyanogenmod/platform/internal/CMStatusBarManagerService.java index 7ad0b3b..ee913ed 100644 --- a/cm/lib/main/java/org/cyanogenmod/platform/internal/CMStatusBarManagerService.java +++ b/cm/lib/main/java/org/cyanogenmod/platform/internal/CMStatusBarManagerService.java @@ -61,6 +61,7 @@ import org.cyanogenmod.platform.internal.R; public class CMStatusBarManagerService extends SystemService { private static final String TAG = "CMStatusBarManagerService"; + private Context mContext; private Handler mHandler = new Handler(); private CustomTileListeners mCustomTileListeners; @@ -77,6 +78,7 @@ public class CMStatusBarManagerService extends SystemService { public CMStatusBarManagerService(Context context) { super(context); + mContext = context; } @Override diff --git a/cm/lib/main/java/org/cyanogenmod/platform/internal/CMTelephonyManagerService.java b/cm/lib/main/java/org/cyanogenmod/platform/internal/CMTelephonyManagerService.java index 25ca556..efd0a89 100644 --- a/cm/lib/main/java/org/cyanogenmod/platform/internal/CMTelephonyManagerService.java +++ b/cm/lib/main/java/org/cyanogenmod/platform/internal/CMTelephonyManagerService.java @@ -41,6 +41,7 @@ public class CMTelephonyManagerService extends SystemService { private static boolean localLOGD = Log.isLoggable(TAG, Log.DEBUG); private TelephonyManager mTelephonyManager; + private Context mContext; private final IBinder mService = new ICMTelephonyManager.Stub() { /** @@ -177,6 +178,7 @@ public class CMTelephonyManagerService extends SystemService { public CMTelephonyManagerService(Context context) { super(context); + mContext = context; } @Override -- cgit v1.1