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

com.nikedlab.android.inject.extenders.DeviceAdminReceiverInjector Maven / Gradle / Ivy

The newest version!
package com.nikedlab.android.inject.extenders;

import android.app.admin.DeviceAdminReceiver;
import com.nikedlab.android.inject.extenders.InjectedApplication;

/**
 * Created with Comodo Inc.
 * User: Kuzmenko Victor
 * Date: 06.11.14
 * Time: 15:06
 */
public class DeviceAdminReceiverInjector extends DeviceAdminReceiver {

    private InjectedApplication application;

    public DeviceAdminReceiverInjector() {
        super();
        if ("Dalvik".equals(System.getProperty("java.vm.name"))) {
            InjectedApplication application = getInjectedApplication();
            application.injectInto(this);
        }
    }

    private InjectedApplication getInjectedApplication() {
        if (application == null) {
            application = (InjectedApplication) InjectedApplication.application;
        }
        return application;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy