Java源码示例:io.github.inflationx.viewpump.ViewPumpContextWrapper

示例1
@NonNull
static Context getBaseContext(@NonNull View view) {
    Context context = view.getContext();
    if (context instanceof ContextThemeWrapper) {
        context = ((ContextThemeWrapper) view.getContext()).getBaseContext();
    } else if (context instanceof ViewPumpContextWrapper) {
        context = ((ViewPumpContextWrapper) view.getContext()).getBaseContext();
    }
    return context;
}
 
示例2
@Override
protected void attachBaseContext(Context newBase) {
    super.attachBaseContext(ViewPumpContextWrapper.wrap(newBase));
}
 
示例3
@Override
protected void attachBaseContext(Context newBase) {
    LocaleHelper.setLocale(newBase);
    super.attachBaseContext(ViewPumpContextWrapper.wrap(newBase));
}
 
示例4
@Override
protected void attachBaseContext(Context newBase) {
    super.attachBaseContext(ViewPumpContextWrapper.wrap(newBase));
}
 
示例5
@Override
protected void attachBaseContext(Context newBase) {
    LocaleHelper.setLocale(newBase);
    super.attachBaseContext(ViewPumpContextWrapper.wrap(newBase));
}
 
示例6
@Override
protected void attachBaseContext(Context base) {
  Context newContext = MyApplication.localeManager.setLocale(base);
  super.attachBaseContext(ViewPumpContextWrapper.wrap(newContext));
}
 
示例7
@Override
protected void attachBaseContext(Context base) {
  Context newContext = MyApplication.localeManager.setLocale(base);
  super.attachBaseContext(ViewPumpContextWrapper.wrap(newContext));
}
 
示例8
@Override
protected void attachBaseContext(Context newBase) {
    //注入字体
    super.attachBaseContext(ViewPumpContextWrapper.wrap(newBase));
}
 
示例9
@Override
protected void attachBaseContext(Context newBase) {
    //注入字体
    super.attachBaseContext(ViewPumpContextWrapper.wrap(newBase));
}
 
示例10
@Override
protected void attachBaseContext(Context newBase) {
    super.attachBaseContext(ViewPumpContextWrapper.wrap(newBase));
}
 
示例11
@Override
protected void attachBaseContext(Context newBase) {
    super.attachBaseContext(ViewPumpContextWrapper.wrap(newBase));
}
 
示例12
@Override
protected void attachBaseContext(Context newBase) {
    super.attachBaseContext(ViewPumpContextWrapper.wrap(newBase));
}
 
示例13
@Override
protected void attachBaseContext(Context newBase) {
    super.attachBaseContext(ViewPumpContextWrapper.wrap(newBase));
}
 
示例14
@Override
protected void attachBaseContext(Context base) {
    super.attachBaseContext(ViewPumpContextWrapper.wrap(base));
}
 
示例15
@Override
protected void attachBaseContext(Context base) {
    super.attachBaseContext(ViewPumpContextWrapper.wrap(base));
}
 
示例16
@Override
protected void attachBaseContext(Context newBase) {
    super.attachBaseContext(ViewPumpContextWrapper.wrap(newBase));
}
 
示例17
@Override
protected void attachBaseContext(Context newBase) {
    super.attachBaseContext(ViewPumpContextWrapper.wrap(newBase));
}
 
示例18
@Override
protected void attachBaseContext(Context newBase) {
    super.attachBaseContext(ViewPumpContextWrapper.wrap(newBase));
}
 
示例19
@Override
protected void attachBaseContext(Context newBase) {
    super.attachBaseContext(ViewPumpContextWrapper.wrap(newBase));
}
 
示例20
@Override
protected void attachBaseContext(Context newBase) {
    super.attachBaseContext(ViewPumpContextWrapper.wrap(newBase));
}
 
示例21
@Override
protected void attachBaseContext(Context newBase) {
    super.attachBaseContext(ViewPumpContextWrapper.wrap(newBase));
}
 
示例22
@Override
protected void attachBaseContext(Context newBase) {
    super.attachBaseContext(ViewPumpContextWrapper.wrap(newBase));
}
 
示例23
@Override
protected void attachBaseContext(Context newBase) {
    super.attachBaseContext(ViewPumpContextWrapper.wrap(newBase));
}
 
示例24
@Override
protected void attachBaseContext(Context newBase) {
    super.attachBaseContext(ViewPumpContextWrapper.wrap(newBase));
}
 
示例25
@Override
protected void attachBaseContext(Context newBase) {
    super.attachBaseContext(ViewPumpContextWrapper.wrap(newBase));
    MultiDex.install(this);
}
 
示例26
@Override
protected void attachBaseContext(Context newBase) {
    super.attachBaseContext(ViewPumpContextWrapper.wrap(newBase));
}
 
示例27
@Override
protected void attachBaseContext(Context newBase) {
    super.attachBaseContext(ViewPumpContextWrapper.wrap(newBase));
}
 
示例28
@Override
protected void attachBaseContext(Context newBase) {
    super.attachBaseContext(ViewPumpContextWrapper.wrap(newBase));
}
 
示例29
@Override
protected void attachBaseContext(Context newBase) {
    super.attachBaseContext(ViewPumpContextWrapper.wrap(newBase));
}
 
示例30
@Override
protected void attachBaseContext(Context newBase) {
    super.attachBaseContext(ViewPumpContextWrapper.wrap(newBase));
}