mobile/android/base/fxa/activities/FxAccountCreateAccountNotAllowedActivity.java

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/mobile/android/base/fxa/activities/FxAccountCreateAccountNotAllowedActivity.java	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,36 @@
     1.4 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.5 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.6 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.7 +
     1.8 +package org.mozilla.gecko.fxa.activities;
     1.9 +
    1.10 +import org.mozilla.gecko.R;
    1.11 +import org.mozilla.gecko.background.common.log.Logger;
    1.12 +import org.mozilla.gecko.sync.setup.activities.ActivityUtils;
    1.13 +
    1.14 +import android.os.Bundle;
    1.15 +import android.widget.TextView;
    1.16 +
    1.17 +/**
    1.18 + * Activity which displays sign up/sign in screen to the user.
    1.19 + */
    1.20 +public class FxAccountCreateAccountNotAllowedActivity extends FxAccountAbstractActivity {
    1.21 +  protected static final String LOG_TAG = FxAccountCreateAccountNotAllowedActivity.class.getSimpleName();
    1.22 +
    1.23 +  public FxAccountCreateAccountNotAllowedActivity() {
    1.24 +    super(CANNOT_RESUME_WHEN_ACCOUNTS_EXIST);
    1.25 +  }
    1.26 +
    1.27 +  /**
    1.28 +   * {@inheritDoc}
    1.29 +   */
    1.30 +  @Override
    1.31 +  public void onCreate(Bundle icicle) {
    1.32 +    Logger.debug(LOG_TAG, "onCreate(" + icicle + ")");
    1.33 +
    1.34 +    super.onCreate(icicle);
    1.35 +    setContentView(R.layout.fxaccount_create_account_not_allowed);
    1.36 +    TextView view = (TextView) findViewById(R.id.learn_more_link);
    1.37 +    ActivityUtils.linkTextView(view, R.string.fxaccount_account_create_not_allowed_learn_more, R.string.fxaccount_link_create_not_allowed);
    1.38 +  }
    1.39 +}

mercurial