public static void setVendorCompat(Context context, VendorCompat compat) { cachedCompat = compat; // Application-wide configuration Context appContext = context.getApplicationContext(); // PlayHaven specific configuration for this Application SharedPreferences pref = appContext.getSharedPreferences(SHARED_PREF_NAME, SHARED_PREF_MODE); SharedPreferences.Editor editor = pref.edit(); // Set the property editor.putString(Config.PluginIdentifer.toString(), compat.getVendorId()); editor.putString(Config.PluginType.toString(), compat.getClass().getCanonicalName()); // And commit it editor.commit(); i("PlayHaven plugin identifier set: %s", compat.getVendorId()); debugConfig(context); }