/** * Static initializer, use this to get the active instance. This insures we only ever have one * copy going at once! * * @return a singleton post manager. */ public static CachedPostManager getInstance(Context context) { if (sPostManager == null) { sPostManager = new CachedPostManager(context.getApplicationContext()); sPostManager.mProfileManager = UserProfileManager.getInstance(context); } return sPostManager; }