app/src/main/java/com/sap/cloud/mobile/fiori/demo/onboarding/OnboardingView.java
@Override
    public void startEULAScreen() {


        Intent i = new Intent();
        i.setComponent(new ComponentName(activity.getPackageName(),
                "com.sap.cloud.mobile.onboarding.eula.EULAScreenActivity"));
        EULAScreenSettings eulaScreenSettings;

        if (activity.isUITest) {
            eulaScreenSettings = new EULAScreenSettings(activity.getIntent());
        } else {
            eulaScreenSettings = new EULAScreenSettings();

            String titleString = activity.sharedPreferences.getString(KEY_EULA_HEADLINE, null);
            if (titleString != null && !titleString.equals("")) {
                eulaScreenSettings.setEULATitle(titleString);
            }

            String eulaConfirmButton = activity.sharedPreferences.getString(KEY_EULA_BUTTON_CONFIRM, null);
            if (eulaConfirmButton != null && !eulaConfirmButton.equals("")) {
                eulaScreenSettings.setEULAButtonConfirm(eulaConfirmButton);
            }

            String eulaRejectButton = activity.sharedPreferences.getString(KEY_EULA_BUTTON_REJECT, null);
            if (eulaRejectButton != null && !eulaRejectButton.equals("")) {
                eulaScreenSettings.setEULAButtonReject(eulaRejectButton);
            }

            String eulaUrl = activity.sharedPreferences.getString(KEY_EULA_URL, null);
            if (eulaUrl != null && !eulaUrl.equals("")) {
                eulaScreenSettings.setEULAUrl(eulaUrl);
            }
        }

        eulaScreenSettings.saveToIntent(i);
        activity.startActivityForResult(i, OnboardingActivity.EULA);
    }
/**
     * Starts an EULA screen activity with intent configured based on the shared preferences.
     */
Starts an EULA screen activity with intent configured based on the shared preferences.
Starts an EULA screen activity with intent configured based on the shared preferences .
@Override
    public void startEULAScreen() {
        Intent i = new Intent();
        i.setComponent(new ComponentName(activity.getPackageName(),
                "com.sap.cloud.mobile.onboarding.eula.EULAScreenActivity"));
        EULAScreenSettings eulaScreenSettings;
        if (activity.isUITest) {
            eulaScreenSettings = new EULAScreenSettings(activity.getIntent());
        } else {
            eulaScreenSettings = new EULAScreenSettings();
            String titleString = activity.sharedPreferences.getString(KEY_EULA_HEADLINE, null);
            if (titleString != null && !titleString.equals("")) {
                eulaScreenSettings.setEULATitle(titleString);
            }
            String eulaConfirmButton = activity.sharedPreferences.getString(KEY_EULA_BUTTON_CONFIRM, null);
            if (eulaConfirmButton != null && !eulaConfirmButton.equals("")) {
                eulaScreenSettings.setEULAButtonConfirm(eulaConfirmButton);
            }
            String eulaRejectButton = activity.sharedPreferences.getString(KEY_EULA_BUTTON_REJECT, null);
            if (eulaRejectButton != null && !eulaRejectButton.equals("")) {
                eulaScreenSettings.setEULAButtonReject(eulaRejectButton);
            }
            String eulaUrl = activity.sharedPreferences.getString(KEY_EULA_URL, null);
            if (eulaUrl != null && !eulaUrl.equals("")) {
                eulaScreenSettings.setEULAUrl(eulaUrl);
            }
        }
        eulaScreenSettings.saveToIntent(i);
        activity.startActivityForResult(i, OnboardingActivity.EULA);
    }
@ Override public void startEULAScreen ( ) { Intent i = new Intent ( ) ; i . setComponent ( new ComponentName ( activity . getPackageName ( ) , "com.sap.cloud.mobile.onboarding.eula.EULAScreenActivity" ) ) ; EULAScreenSettings eulaScreenSettings ; if ( activity . isUITest ) { eulaScreenSettings = new EULAScreenSettings ( activity . getIntent ( ) ) ; } else { eulaScreenSettings = new EULAScreenSettings ( ) ; String titleString = activity . sharedPreferences . getString ( KEY_EULA_HEADLINE , null ) ; if ( titleString != null && ! titleString . equals ( "" ) ) { eulaScreenSettings . setEULATitle ( titleString ) ; } String eulaConfirmButton = activity . sharedPreferences . getString ( KEY_EULA_BUTTON_CONFIRM , null ) ; if ( eulaConfirmButton != null && ! eulaConfirmButton . equals ( "" ) ) { eulaScreenSettings . setEULAButtonConfirm ( eulaConfirmButton ) ; } String eulaRejectButton = activity . sharedPreferences . getString ( KEY_EULA_BUTTON_REJECT , null ) ; if ( eulaRejectButton != null && ! eulaRejectButton . equals ( "" ) ) { eulaScreenSettings . setEULAButtonReject ( eulaRejectButton ) ; } String eulaUrl = activity . sharedPreferences . getString ( KEY_EULA_URL , null ) ; if ( eulaUrl != null && ! eulaUrl . equals ( "" ) ) { eulaScreenSettings . setEULAUrl ( eulaUrl ) ; } } eulaScreenSettings . saveToIntent ( i ) ; activity . startActivityForResult ( i , OnboardingActivity . EULA ) ; }
Starts an EULA screen activity with intent configured based on the shared preferences.
Starts an EULA screen activity with intent configured based on the shared preferences .