/** * Sets the theme used by {@link com.facebook.internal.WebDialog} * @param theme A theme to use */ public static void setWebDialogTheme(int theme) { com.facebook.internal.WebDialog.setWebDialogTheme(theme); } }
protected static void initDefaultTheme(Context context) { if (context == null) { return; } ApplicationInfo ai; try { ai = context.getPackageManager().getApplicationInfo( context.getPackageName(), PackageManager.GET_META_DATA); } catch (PackageManager.NameNotFoundException e) { return; } if (ai == null || ai.metaData == null) { return; } if (webDialogTheme == 0) { setWebDialogTheme(ai.metaData.getInt(WEB_DIALOG_THEME)); } }