@Test public void shouldShowSaveAndCompleteButtonWhenFormIsEditable() { ptvRequisitionFragment.initUI(); assertThat(ptvRequisitionFragment.actionPanelView.getVisibility()).isEqualTo(View.VISIBLE); }
protected void initUI() { scrollView.setVisibility(View.INVISIBLE); if (isHistoryForm()) { scrollView.setDescendantFocusability(ViewGroup.FOCUS_BLOCK_DESCENDANTS); actionPanelView.setVisibility(View.GONE); } else { scrollView.setDescendantFocusability(ViewGroup.FOCUS_AFTER_DESCENDANTS); actionPanelView.setVisibility(View.VISIBLE); } bindListeners(); addRegimenListeners(); }
PTVRequisitionFragment extends BaseReportFragment implements PTVRequisitionPresenter.PTVRequisitionView { protected void initUI() { scrollView.setVisibility(View.INVISIBLE); if (isHistoryForm()) { scrollView.setDescendantFocusability(ViewGroup.FOCUS_BLOCK_DESCENDANTS); actionPanelView.setVisibility(View.GONE); } else { scrollView.setDescendantFocusability(ViewGroup.FOCUS_AFTER_DESCENDANTS); actionPanelView.setVisibility(View.VISIBLE); } bindListeners(); addRegimenListeners(); } }
PTVRequisitionFragment extends BaseReportFragment implements PTVRequisitionPresenter.PTVRequisitionView { protected void initUI() { scrollView.setVisibility(View.INVISIBLE); if (isHistoryForm()) { scrollView.setDescendantFocusability(ViewGroup.FOCUS_BLOCK_DESCENDANTS); actionPanelView.setVisibility(View.GONE); } else { scrollView.setDescendantFocusability(ViewGroup.FOCUS_AFTER_DESCENDANTS); actionPanelView.setVisibility(View.VISIBLE); } bindListeners(); addRegimenListeners(); }  }
PTVRequisitionFragment extends BaseReportFragment implements PTVRequisitionPresenter.PTVRequisitionView { protected void initUI() { scrollView.setVisibility(View.INVISIBLE); if (isHistoryForm()) { scrollView.setDescendantFocusability(ViewGroup.FOCUS_BLOCK_DESCENDANTS); actionPanelView.setVisibility(View.GONE); } else { scrollView.setDescendantFocusability(ViewGroup.FOCUS_AFTER_DESCENDANTS); actionPanelView.setVisibility(View.VISIBLE); } bindListeners(); addRegimenListeners(); }  @Override void onCreate(Bundle savedInstanceState); @Override View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState); @Override void onViewCreated(View view, Bundle savedInstanceState); @NonNull Subscriber<Void> getOnSavedSubscriber(); @Override void setProcessButtonName(String buttonName); @Override void completeSuccess(); @Override void refreshRequisitionForm(RnRForm rnRForm); }
PTVRequisitionFragment extends BaseReportFragment implements PTVRequisitionPresenter.PTVRequisitionView { protected void initUI() { scrollView.setVisibility(View.INVISIBLE); if (isHistoryForm()) { scrollView.setDescendantFocusability(ViewGroup.FOCUS_BLOCK_DESCENDANTS); actionPanelView.setVisibility(View.GONE); } else { scrollView.setDescendantFocusability(ViewGroup.FOCUS_AFTER_DESCENDANTS); actionPanelView.setVisibility(View.VISIBLE); } bindListeners(); addRegimenListeners(); }  @Override void onCreate(Bundle savedInstanceState); @Override View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState); @Override void onViewCreated(View view, Bundle savedInstanceState); @NonNull Subscriber<Void> getOnSavedSubscriber(); @Override void setProcessButtonName(String buttonName); @Override void completeSuccess(); @Override void refreshRequisitionForm(RnRForm rnRForm);  }