Source:
public void setupUI() { activity.setContentView(R.layout.screen_form_entry); blockingActionsManager = new BlockingActionsManager(this.activity); ImageButton nextButton = activity.findViewById(R.id.nav_btn_next); ImageButton prevButton = activity.findViewById(R.id.nav_btn_prev); Button multiIntentDispatchButton = activity.findViewById(R.id.multiple_intent_dispatch_button); View finishButton = activity.findViewById(R.id.nav_btn_finish); TextView finishText = finishButton.findViewById(R.id.nav_btn_finish_text); finishText.setText(Localization.get("form.entry.finish.button").toUpperCase()); nextButton.setOnClickListener(v -> { FirebaseAnalyticsUtil.reportFormNav( AnalyticsParamValue.DIRECTION_FORWARD, AnalyticsParamValue.NAV_BUTTON_PRESS); showNextView(); }); prevButton.setOnClickListener(v -> { if (!FormEntryConstants.NAV_STATE_QUIT.equals(v.getTag())) { FirebaseAnalyticsUtil.reportFormNav( AnalyticsParamValue.DIRECTION_BACKWARD, AnalyticsParamValue.NAV_BUTTON_PRESS); showPreviousView(true); } else { FirebaseAnalyticsUtil.reportFormQuitAttempt(AnalyticsParamValue.NAV_BUTTON_PRESS); activity.triggerUserQuitInput(); } }); finishButton.setOnClickListener(v -> { FirebaseAnalyticsUtil.reportFormNav( AnalyticsParamValue.DIRECTION_FORWARD, AnalyticsParamValue.NAV_BUTTON_PRESS); activity.triggerUserFormComplete(); }); if (LocalePreferences.isLocaleRTL()) { finishButton.findViewById(R.id.nav_image_finish).setScaleX(-1f); nextButton.setScaleX(-1f); prevButton.setScaleX(-1f); } multiIntentDispatchButton.setOnClickListener(v -> activity.fireCompoundIntentDispatch()); mViewPane = activity.findViewById(R.id.form_entry_pane); activity.requestMajorLayoutUpdates(); if (questionsView != null) { questionsView.teardownView(); } isAnimatingSwipe = false; isDialogShowing = false; questionsView = null; mInAnimation = null; mOutAnimation = null; }

Target:
public void setupUI() { activity.setContentView(R.layout.screen_form_entry); blockingActionsManager = new BlockingActionsManager(this.activity); ImageButton nextButton = activity.findViewById(R.id.nav_btn_next); ImageButton prevButton = activity.findViewById(R.id.nav_btn_prev); Button multiIntentDispatchButton = activity.findViewById(R.id.multiple_intent_dispatch_button); View finishButton = activity.findViewById(R.id.nav_btn_finish); TextView finishText = finishButton.findViewById(R.id.nav_btn_finish_text); finishText.setText(Localization.get("form.entry.finish.button").toUpperCase()); nextButton.setOnClickListener(v -> { FirebaseAnalyticsUtil.reportFormNav( AnalyticsParamValue.DIRECTION_FORWARD, AnalyticsParamValue.NAV_BUTTON_PRESS); showNextView(); }); prevButton.setOnClickListener(v -> { if (!FormEntryConstants.NAV_STATE_QUIT.equals(v.getTag())) { FirebaseAnalyticsUtil.reportFormNav( AnalyticsParamValue.DIRECTION_BACKWARD, AnalyticsParamValue.NAV_BUTTON_PRESS); showPreviousView(true); } else { FirebaseAnalyticsUtil.reportFormQuitAttempt(AnalyticsParamValue.NAV_BUTTON_PRESS); activity.triggerUserQuitInput(); } }); finishButton.setOnClickListener(v -> { FirebaseAnalyticsUtil.reportFormNav( AnalyticsParamValue.DIRECTION_FORWARD, AnalyticsParamValue.NAV_BUTTON_PRESS); activity.triggerUserFormComplete(); }); multiIntentDispatchButton.setOnClickListener(v -> activity.fireCompoundIntentDispatch()); mViewPane = activity.findViewById(R.id.form_entry_pane); activity.requestMajorLayoutUpdates(); if (questionsView != null) { questionsView.teardownView(); } isAnimatingSwipe = false; isDialogShowing = false; questionsView = null; mInAnimation = null; mOutAnimation = null; }