/** * @return the most recently created {@code AlertDialog}, or null if none has been created during this test run */ public static AlertDialog getLatestAlertDialog() { ShadowApplication shadowApplication = Shadow.extract(RuntimeEnvironment.application); ShadowAlertDialog dialog = shadowApplication.getLatestAlertDialog(); return dialog == null ? null : dialog.realAlertDialog; }
/** * @return the most recently created {@code AlertDialog}, or null if none has been created during this test run */ public static AlertDialog getLatestAlertDialog() { ShadowApplication shadowApplication = Shadow.extract(RuntimeEnvironment.application); ShadowAlertDialog dialog = shadowApplication.getLatestAlertDialog(); return dialog == null ? null : dialog.realAlertDialog; }
/** * @return the most recently created {@code AlertDialog}, or null if none has been created during this test run */ public static AlertDialog getLatestAlertDialog() { ShadowAlertDialog dialog = shadowOf(RuntimeEnvironment.application).getLatestAlertDialog(); return dialog == null ? null : dialog.realAlertDialog; }
/** * Non-Android accessor. * * @return the most recently created {@code AlertDialog}, or null if none has been created during this test run */ public static AlertDialog getLatestAlertDialog() { ShadowAlertDialog dialog = shadowOf(RuntimeEnvironment.application).getLatestAlertDialog(); return dialog == null ? null : dialog.realAlertDialog; }
/** * Non-Android accessor. * * @return the most recently created {@code AlertDialog}, or null if none has been created during this test run */ public static AlertDialog getLatestAlertDialog() { ShadowAlertDialog dialog = shadowOf(RuntimeEnvironment.application).getLatestAlertDialog(); return dialog == null ? null : dialog.realAlertDialog; }