Source:
<code>public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_create_account); ButterKnife.bind(this); <START> DeviceUtil.setStatusBarIconColor(primaryContainer); <END> if (ReadingListSyncAdapter.isDisabledByRemoteConfig()) { onboardingContainer.setVisibility(View.GONE); } progressDialog = new ProgressDialog(this); progressDialog.setIndeterminate(true); progressDialog.setCancelable(false); progressDialog.setMessage(getString(R.string.dialog_create_account_checking_progress)); errorView.setBackClickListener((v) -> onBackPressed()); errorView.setRetryClickListener((v) -> errorView.setVisibility(View.GONE)); wiki = WikipediaApp.getInstance().getWikiSite(); captchaHandler = new CaptchaHandler(this, WikipediaApp.getInstance().getWikiSite(), progressDialog, primaryContainer, getString(R.string.create_account_activity_title), getString(R.string.create_account_button)); new NonEmptyValidator((isValid) -> createAccountButton.setEnabled(isValid), usernameInput, passwordInput); new NonEmptyValidator((isValid) -> createAccountButtonCaptcha.setEnabled(isValid), captchaText); captchaText.setOnKeyListener((v, keyCode, event) -> { if ((event.getAction() == KeyEvent.ACTION_UP) && (keyCode == KeyEvent.KEYCODE_ENTER)) { validateThenCreateAccount(); return true; } return false; }); usernameInput.getEditText().addTextChangedListener(userNameTextWatcher); if (savedInstanceState != null && savedInstanceState.containsKey("result")) { createAccountResult = savedInstanceState.getParcelable("result"); } funnel = new CreateAccountFunnel(WikipediaApp.getInstance(), getIntent().getStringExtra(LOGIN_REQUEST_SOURCE)); if (savedInstanceState == null) { funnel.logStart(getIntent().getStringExtra(LOGIN_SESSION_TOKEN)); } setResult(RESULT_ACCOUNT_NOT_CREATED); }</code><technical_language>placing this call in pretty Activity Fragment. Is a reason put in BaseActivity (use getDecorView() for View), need put else</technical_language>

Target:
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_create_account); ButterKnife.bind(this); if (ReadingListSyncAdapter.isDisabledByRemoteConfig()) { onboardingContainer.setVisibility(View.GONE); } progressDialog = new ProgressDialog(this); progressDialog.setIndeterminate(true); progressDialog.setCancelable(false); progressDialog.setMessage(getString(R.string.dialog_create_account_checking_progress)); errorView.setBackClickListener((v) -> onBackPressed()); errorView.setRetryClickListener((v) -> errorView.setVisibility(View.GONE)); wiki = WikipediaApp.getInstance().getWikiSite(); captchaHandler = new CaptchaHandler(this, WikipediaApp.getInstance().getWikiSite(), progressDialog, primaryContainer, getString(R.string.create_account_activity_title), getString(R.string.create_account_button)); new NonEmptyValidator((isValid) -> createAccountButton.setEnabled(isValid), usernameInput, passwordInput); new NonEmptyValidator((isValid) -> createAccountButtonCaptcha.setEnabled(isValid), captchaText); captchaText.setOnKeyListener((v, keyCode, event) -> { if ((event.getAction() == KeyEvent.ACTION_UP) && (keyCode == KeyEvent.KEYCODE_ENTER)) { validateThenCreateAccount(); return true; } return false; }); usernameInput.getEditText().addTextChangedListener(userNameTextWatcher); if (savedInstanceState != null && savedInstanceState.containsKey("result")) { createAccountResult = savedInstanceState.getParcelable("result"); } funnel = new CreateAccountFunnel(WikipediaApp.getInstance(), getIntent().getStringExtra(LOGIN_REQUEST_SOURCE)); if (savedInstanceState == null) { funnel.logStart(getIntent().getStringExtra(LOGIN_SESSION_TOKEN)); } setResult(RESULT_ACCOUNT_NOT_CREATED); }