@Test public void throwExceptionWithOutActionHandler() throws IllegalStateException { final SystemAlertDialogFragment fragment = SystemAlertDialogFragment.newInstance(Alert.NewEmptyInstance(), getResources()); thrown.expect(IllegalStateException.class); thrown.expectMessage(Matchers.containsString(Alert.ActionHandler.class.getName() + " required to handle actions")); startFragment(fragment); }
public static SystemAlertDialogFragment newInstance(@NonNull final Alert alert, @NonNull final Resources resources) { final Bundle args = new Bundle(); args.putSerializable(ARG_ALERT, new AlertDialogViewModel(alert, resources)); final SystemAlertDialogFragment fragment = new SystemAlertDialogFragment(); fragment.setArguments(args); return fragment; }
SystemAlertDialogFragment extends BottomAlertDialogFragment<AlertDialogViewModel> { public static SystemAlertDialogFragment newInstance(@NonNull final Alert alert, @NonNull final Resources resources) { final Bundle args = new Bundle(); args.putSerializable(ARG_ALERT, new AlertDialogViewModel(alert, resources)); final SystemAlertDialogFragment fragment = new SystemAlertDialogFragment(); fragment.setArguments(args); return fragment; } }
SystemAlertDialogFragment extends BottomAlertDialogFragment<AlertDialogViewModel> { public static SystemAlertDialogFragment newInstance(@NonNull final Alert alert, @NonNull final Resources resources) { final Bundle args = new Bundle(); args.putSerializable(ARG_ALERT, new AlertDialogViewModel(alert, resources)); final SystemAlertDialogFragment fragment = new SystemAlertDialogFragment(); fragment.setArguments(args); return fragment; }  }
SystemAlertDialogFragment extends BottomAlertDialogFragment<AlertDialogViewModel> { public static SystemAlertDialogFragment newInstance(@NonNull final Alert alert, @NonNull final Resources resources) { final Bundle args = new Bundle(); args.putSerializable(ARG_ALERT, new AlertDialogViewModel(alert, resources)); final SystemAlertDialogFragment fragment = new SystemAlertDialogFragment(); fragment.setArguments(args); return fragment; }  static SystemAlertDialogFragment newInstance(@NonNull final Alert alert,
                                                        @NonNull final Resources resources); @Override void onViewCreated(View view, @Nullable Bundle savedInstanceState); }
SystemAlertDialogFragment extends BottomAlertDialogFragment<AlertDialogViewModel> { public static SystemAlertDialogFragment newInstance(@NonNull final Alert alert, @NonNull final Resources resources) { final Bundle args = new Bundle(); args.putSerializable(ARG_ALERT, new AlertDialogViewModel(alert, resources)); final SystemAlertDialogFragment fragment = new SystemAlertDialogFragment(); fragment.setArguments(args); return fragment; }  static SystemAlertDialogFragment newInstance(@NonNull final Alert alert,
                                                        @NonNull final Resources resources); @Override void onViewCreated(View view, @Nullable Bundle savedInstanceState);  }