app/src/main/java/com/sap/cloud/mobile/fiori/demo/onboarding/OnboardingView.java
@Override
    public void startFingerprintError() {
        int requestCode = OnboardingActivity.FINGERPRINT_ERROR;
        Intent i = new Intent();
        i.setComponent(new ComponentName(activity.getPackageName(), "com.sap.cloud.mobile.onboarding.fingerprint.FingerprintErrorActivity"));

        FingerprintErrorSettings fingerprintErrorSettings;

        if (activity.isUITest) {
            fingerprintErrorSettings = new FingerprintErrorSettings(activity.getIntent());
        } else {
            fingerprintErrorSettings = new FingerprintErrorSettings();
            String fingerprintErrorHeadlineLabel = activity.sharedPreferences.getString(
                    KEY_ERROR_HEADLINE_LABEL, null);
            if (fingerprintErrorHeadlineLabel != null) {
                fingerprintErrorSettings.setFingerprintErrorHeadlineLabel(
                        fingerprintErrorHeadlineLabel);
            }

            String fingerprintErrorDetailLabel = activity.sharedPreferences.getString(
                    KEY_ERROR_DETAIL_LABEL, null);
            if (fingerprintErrorDetailLabel != null) {
                fingerprintErrorSettings.setFingerprintErrorDetailLabel(fingerprintErrorDetailLabel);
            }

            String fingerprintErrorResetButton = activity.sharedPreferences.getString(
                    KEY_ERROR_RESET_BUTTON, null);
            if (fingerprintErrorResetButton != null) {
                fingerprintErrorSettings.setFingerprintErrorResetButtonTitle(
                        fingerprintErrorResetButton);
            }
            boolean resetEnabled = activity.sharedPreferences.getBoolean(
                    KEY_ERROR_RESET_ENABLED, false);
            fingerprintErrorSettings.setFingerprintErrorResetEnabled(resetEnabled);
        }

        fingerprintErrorSettings.saveToIntent(i);

        activity.startActivityForResult(i, requestCode);
    }
/**
     * Starts a fingerprint error activity with intent configured based on the shared preferences.
     */
Starts a fingerprint error activity with intent configured based on the shared preferences.
Starts a fingerprint error activity with intent configured based on the shared preferences .
@Override
    public void startFingerprintError() {
        int requestCode = OnboardingActivity.FINGERPRINT_ERROR;
        Intent i = new Intent();
        i.setComponent(new ComponentName(activity.getPackageName(), "com.sap.cloud.mobile.onboarding.fingerprint.FingerprintErrorActivity"));
        FingerprintErrorSettings fingerprintErrorSettings;
        if (activity.isUITest) {
            fingerprintErrorSettings = new FingerprintErrorSettings(activity.getIntent());
        } else {
            fingerprintErrorSettings = new FingerprintErrorSettings();
            String fingerprintErrorHeadlineLabel = activity.sharedPreferences.getString(
                    KEY_ERROR_HEADLINE_LABEL, null);
            if (fingerprintErrorHeadlineLabel != null) {
                fingerprintErrorSettings.setFingerprintErrorHeadlineLabel(
                        fingerprintErrorHeadlineLabel);
            }
            String fingerprintErrorDetailLabel = activity.sharedPreferences.getString(
                    KEY_ERROR_DETAIL_LABEL, null);
            if (fingerprintErrorDetailLabel != null) {
                fingerprintErrorSettings.setFingerprintErrorDetailLabel(fingerprintErrorDetailLabel);
            }
            String fingerprintErrorResetButton = activity.sharedPreferences.getString(
                    KEY_ERROR_RESET_BUTTON, null);
            if (fingerprintErrorResetButton != null) {
                fingerprintErrorSettings.setFingerprintErrorResetButtonTitle(
                        fingerprintErrorResetButton);
            }
            boolean resetEnabled = activity.sharedPreferences.getBoolean(
                    KEY_ERROR_RESET_ENABLED, false);
            fingerprintErrorSettings.setFingerprintErrorResetEnabled(resetEnabled);
        }
        fingerprintErrorSettings.saveToIntent(i);
        activity.startActivityForResult(i, requestCode);
    }
@ Override public void startFingerprintError ( ) { int requestCode = OnboardingActivity . FINGERPRINT_ERROR ; Intent i = new Intent ( ) ; i . setComponent ( new ComponentName ( activity . getPackageName ( ) , "com.sap.cloud.mobile.onboarding.fingerprint.FingerprintErrorActivity" ) ) ; FingerprintErrorSettings fingerprintErrorSettings ; if ( activity . isUITest ) { fingerprintErrorSettings = new FingerprintErrorSettings ( activity . getIntent ( ) ) ; } else { fingerprintErrorSettings = new FingerprintErrorSettings ( ) ; String fingerprintErrorHeadlineLabel = activity . sharedPreferences . getString ( KEY_ERROR_HEADLINE_LABEL , null ) ; if ( fingerprintErrorHeadlineLabel != null ) { fingerprintErrorSettings . setFingerprintErrorHeadlineLabel ( fingerprintErrorHeadlineLabel ) ; } String fingerprintErrorDetailLabel = activity . sharedPreferences . getString ( KEY_ERROR_DETAIL_LABEL , null ) ; if ( fingerprintErrorDetailLabel != null ) { fingerprintErrorSettings . setFingerprintErrorDetailLabel ( fingerprintErrorDetailLabel ) ; } String fingerprintErrorResetButton = activity . sharedPreferences . getString ( KEY_ERROR_RESET_BUTTON , null ) ; if ( fingerprintErrorResetButton != null ) { fingerprintErrorSettings . setFingerprintErrorResetButtonTitle ( fingerprintErrorResetButton ) ; } boolean resetEnabled = activity . sharedPreferences . getBoolean ( KEY_ERROR_RESET_ENABLED , false ) ; fingerprintErrorSettings . setFingerprintErrorResetEnabled ( resetEnabled ) ; } fingerprintErrorSettings . saveToIntent ( i ) ; activity . startActivityForResult ( i , requestCode ) ; }
Starts a fingerprint error activity with intent configured based on the shared preferences.
Starts a fingerprint error activity with intent configured based on the shared preferences .