package com.onfido.android.app.sample;

import android.os.Bundle;
import android.os.Handler;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentTransaction;
import android.support.v7.app.AppCompatActivity;

import com.onfido.android.sdk.capture.DocumentType;
import com.onfido.android.sdk.capture.ui.MessageFragment;
import com.onfido.android.sdk.capture.ui.NextActionListener;
import com.onfido.android.sdk.capture.utils.CountryCode;

public class FinalActivity extends AppCompatActivity implements NextActionListener {
    private Handler handler;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        handler = new Handler();
        setContentView(R.layout.final_holder);

        showFinalScreen();
    }

    @Override
    public void onDocumentTypeSelected(DocumentType documentType) {

    }

    @Override
    public void onCountrySelected(DocumentType documentType, CountryCode countryCode) {

    }

    @Override
    public void onAlternateDocumentSelected() {

    }

    public void showFinalScreen() {
        Fragment fragment = MessageFragment.createInstance(
                "Verification completed",
                getString(R.string.welcome_bank_account)
        );
        setFragment(fragment);
    }

    private void setFragment(final Fragment fragment) {
        if (isFinishing()) {
            return;
        }

        FragmentTransaction ft = getSupportFragmentManager().beginTransaction();
        ft.replace(com.onfido.android.sdk.capture.R.id.fl_content, fragment);
        ft.commitAllowingStateLoss();
    }

    @Override
    public void onPreviousClicked() {

    }

    @Override
    public void onNextClicked() {
        setFragment(SummaryFragment.createInstance());
    }
}

@@ -1683,24 +1683,39 @@
 Clicked() %7B%0A
+        //no op
 %0A    %7D%0A%0A    

Add comment to onPreviousClicked method