All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.holoeverywhere.app.ContextThemeWrapperPlus Maven / Gradle / Ivy

The newest version!

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);
        mTheme = 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);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy