Skip to content

Instantly share code, notes, and snippets.

@cnevinc
Last active August 29, 2015 14:17
Show Gist options
  • Save cnevinc/bf67e26115f7596c5546 to your computer and use it in GitHub Desktop.
Save cnevinc/bf67e26115f7596c5546 to your computer and use it in GitHub Desktop.
/**
* Proxying implementation of Context that simply delegates all of its calls to
* another Context. Can be subclassed to modify behavior without changing
* the original Context.
*/
public class ContextWrapper extends Context {
Context mBase;
public ContextWrapper(Context base) {
mBase = base;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment