com.semoncat.geach.core.ProxyActivity Maven / Gradle / Ivy
package com.semoncat.geach.core;
import android.app.Activity;
import android.content.Context;
import android.content.res.AssetManager;
import android.content.res.Resources;
/**
* Created by SemonCat on 2014/7/8.
*/
public class ProxyActivity extends Activity{
private Context packageContext;
public void setPackageContext(Context packageContext){
this.packageContext = packageContext;
}
@Override
public AssetManager getAssets() {
return packageContext == null ? super.getAssets() : packageContext.getAssets();
}
@Override
public Resources getResources() {
return packageContext == null ? super.getResources() : packageContext.getResources();
}
@Override
public Resources.Theme getTheme() {
return packageContext == null ? super.getTheme() : packageContext.getTheme();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy