
package org.holoeverywhere.app;

import org.holoeverywhere.SystemServiceManager;
import org.holoeverywhere.SystemServiceManager.SuperSystemService;

import android.content.Context;
import android.view.ContextThemeWrapper;

public class ContextThemeWrapperPlus extends ContextThemeWrapper implements SuperSystemService {
    private int mTheme;

    public ContextThemeWrapperPlus(Context base, int themeres) {
        super(base, themeres);
    }

    @Override
    public Object getSystemService(String name) {
        return SystemServiceManager.getSystemService(this, name);
    }

    public int getThemeResource() {
        return mTheme;
    }

    @Override
    public void setTheme(int resid) {
        super.setTheme(mTheme = resid);
    }

    @Override
    public Object superGetSystemService(String name) {
        return super.getSystemService(name);
    }
}

@@ -435,16 +435,48 @@
 meres);%0A
+        this.mTheme = themeres;%0A
     %7D%0A%0A 

set theme res in a wrapper from constructor