@Override protected void attachBaseContext(Context newBase) { super.attachBaseContext(CalligraphyContextWrapper.wrap(newBase)); }
@Override protected void attachBaseContext(Context newBase) { super.attachBaseContext(CalligraphyContextWrapper.wrap(newBase)); }
@Override protected void attachBaseContext(Context newBase) { Locale locale = null; String language = Settings.getAppLanguage(); if (language != null && !language.equals("system")) { String[] split = language.split("-"); if (split.length == 1) { locale = new Locale(split[0]); } else if (split.length == 2) { locale = new Locale(split[0], split[1]); } else if (split.length == 3) { locale = new Locale(split[0], split[1], split[2]); } } if (locale != null) { newBase = ContextLocalWrapper.wrap(newBase, locale); } super.attachBaseContext(newBase); } }
@Override protected void attachBaseContext(Context newBase) { super.attachBaseContext(newBase); }
@Override protected void attachBaseContext(Context base) { super.attachBaseContext(Api.updateBaseContextLocale(base)); }
@Override protected void attachBaseContext(Context newBase) { super.attachBaseContext(LocalManageUtil.setLocal(newBase)); } }
@Override protected void attachBaseContext(Context newBase) { super.attachBaseContext(Emojix.wrap(newBase)); } }
@Override protected void attachBaseContext(final Context baseContext) { final Context context = xdrip.getLangContext(baseContext); super.attachBaseContext(context); }
@Override protected void attachBaseContext(Context newBase) { super.attachBaseContext(CalligraphyContextWrapper.wrap(newBase)); } }
@Override protected void attachBaseContext(final Context baseContext) { final Context context = xdrip.getLangContext(baseContext); super.attachBaseContext(context); }
@Override protected void attachBaseContext(Context newBase) { super.attachBaseContext(CalligraphyContextWrapper.wrap(newBase)); } }
@Override protected void attachBaseContext(Context newBase) { super.attachBaseContext(Restring.wrapContext(newBase)); } }
@Override protected void attachBaseContext(Context newBase) { super.attachBaseContext(CalligraphyContextWrapper.wrap(newBase)); } }
@Override protected void attachBaseContext(Context newBase) { super.attachBaseContext(MultiLanguageUtil.attachBaseContext(newBase)); } }
@Override protected void attachBaseContext(Context newBase) { super.attachBaseContext(newBase); mBase = Base.getInstance(getApplicationContext()); }
@Override protected void attachBaseContext(Context newBase) { mDelegate = new PluginActivityDelegate(); newBase = mDelegate.createActivityContext(this, newBase); super.attachBaseContext(newBase); }
@Override protected void attachBaseContext(Context newBase) { final Locale prefLocale = AppLocale.ContextWrapper.getPreferredLocale(newBase); ViewUtils.Debug(this, "Settings locale: " + prefLocale.toString()); super.attachBaseContext(AppLocale.ContextWrapper.wrap(newBase, prefLocale)); }
@Override protected void attachBaseContext(Context newBase) { super.attachBaseContext(newBase); try { FrameworkHookHelper.hookActivityManagerNative(); FrameworkHookHelper.hookActivityThreadHandler(); FrameworkHookHelper.hookPackageManager(); } catch (Exception e) { e.printStackTrace(); } } }
@Override protected void attachBaseContext(Context newBase) { //ParallaxPager and Calligraphy don't seem to play nicely together //The solution was to add a listener for view creation events so that we can hook up // Calligraphy to our view creation calls instead. super.attachBaseContext( new ParallaxContextWrapper(newBase, new OpenCalligraphyFactory()) ); }
@Override protected void attachBaseContext(Context newBase) { Locale newLocale = new Settings(new Repository(newBase)).getLanguageLocale(); Context context = ConfigurationUtils.createContext(newBase, newLocale); super.attachBaseContext(context); }