FileDocCategorySizeDatePackage
DessertCase.javaAPI DocAndroid 5.1 API1927Thu Mar 12 22:22:42 GMT 2015com.android.systemui

DessertCase

public class DessertCase extends android.app.Activity

Fields Summary
DessertCaseView
mView
Constructors Summary
Methods Summary
public voidonPause()

        super.onPause();
        mView.stop();
    
public voidonResume()

        super.onResume();
        mView.postDelayed(new Runnable() {
            public void run() {
                mView.start();
            }
        }, 1000);
    
public voidonStart()

        super.onStart();

        PackageManager pm = getPackageManager();
        final ComponentName cn = new ComponentName(this, DessertCaseDream.class);
        if (pm.getComponentEnabledSetting(cn) != PackageManager.COMPONENT_ENABLED_STATE_ENABLED) {
            Slog.v("DessertCase", "ACHIEVEMENT UNLOCKED");
            pm.setComponentEnabledSetting(cn,
                    PackageManager.COMPONENT_ENABLED_STATE_ENABLED,
                    PackageManager.DONT_KILL_APP);
        }

        mView = new DessertCaseView(this);

        DessertCaseView.RescalingContainer container = new DessertCaseView.RescalingContainer(this);

        container.setView(mView);

        setContentView(container);