org.robolectric.shadows.ShadowDialog Maven / Gradle / Ivy
package org.robolectric.shadows;
import android.app.Activity;
import android.app.Dialog;
import android.content.Context;
import android.content.DialogInterface;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.Window;
import org.robolectric.Shadows;
import org.robolectric.annotation.Implementation;
import org.robolectric.annotation.Implements;
import org.robolectric.annotation.RealObject;
import org.robolectric.annotation.Resetter;
import org.robolectric.util.ReflectionHelpers;
import org.robolectric.util.ReflectionHelpers.ClassParameter;
import java.util.ArrayList;
import java.util.List;
import static org.robolectric.internal.Shadow.directlyOn;
/**
* Shadow for {@link android.app.Dialog}.
*/
@SuppressWarnings({"UnusedDeclaration"})
@Implements(Dialog.class)
public class ShadowDialog {
@RealObject private Dialog realDialog;
private boolean isShowing;
Context context;
private int layoutId;
private int themeId;
private View inflatedView;
private boolean hasBeenDismissed;
protected CharSequence title;
private DialogInterface.OnCancelListener onCancelListener;
private Window window;
private Activity ownerActivity;
private boolean hasShownBefore;
private static final ArrayList
© 2015 - 2025 Weber Informatics LLC | Privacy Policy