michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: package org.mozilla.gecko.fxa.activities; michael@0: michael@0: import org.mozilla.gecko.R; michael@0: import org.mozilla.gecko.background.common.log.Logger; michael@0: import org.mozilla.gecko.sync.setup.activities.ActivityUtils; michael@0: michael@0: import android.os.Bundle; michael@0: import android.widget.TextView; michael@0: michael@0: /** michael@0: * Activity which displays sign up/sign in screen to the user. michael@0: */ michael@0: public class FxAccountCreateAccountNotAllowedActivity extends FxAccountAbstractActivity { michael@0: protected static final String LOG_TAG = FxAccountCreateAccountNotAllowedActivity.class.getSimpleName(); michael@0: michael@0: public FxAccountCreateAccountNotAllowedActivity() { michael@0: super(CANNOT_RESUME_WHEN_ACCOUNTS_EXIST); michael@0: } michael@0: michael@0: /** michael@0: * {@inheritDoc} michael@0: */ michael@0: @Override michael@0: public void onCreate(Bundle icicle) { michael@0: Logger.debug(LOG_TAG, "onCreate(" + icicle + ")"); michael@0: michael@0: super.onCreate(icicle); michael@0: setContentView(R.layout.fxaccount_create_account_not_allowed); michael@0: TextView view = (TextView) findViewById(R.id.learn_more_link); michael@0: ActivityUtils.linkTextView(view, R.string.fxaccount_account_create_not_allowed_learn_more, R.string.fxaccount_link_create_not_allowed); michael@0: } michael@0: }