|
1 /* This Source Code Form is subject to the terms of the Mozilla Public |
|
2 * License, v. 2.0. If a copy of the MPL was not distributed with this |
|
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
|
4 |
|
5 package org.mozilla.gecko.fxa.activities; |
|
6 |
|
7 import org.mozilla.gecko.R; |
|
8 import org.mozilla.gecko.background.common.log.Logger; |
|
9 import org.mozilla.gecko.sync.setup.activities.ActivityUtils; |
|
10 |
|
11 import android.os.Bundle; |
|
12 import android.widget.TextView; |
|
13 |
|
14 /** |
|
15 * Activity which displays sign up/sign in screen to the user. |
|
16 */ |
|
17 public class FxAccountCreateAccountNotAllowedActivity extends FxAccountAbstractActivity { |
|
18 protected static final String LOG_TAG = FxAccountCreateAccountNotAllowedActivity.class.getSimpleName(); |
|
19 |
|
20 public FxAccountCreateAccountNotAllowedActivity() { |
|
21 super(CANNOT_RESUME_WHEN_ACCOUNTS_EXIST); |
|
22 } |
|
23 |
|
24 /** |
|
25 * {@inheritDoc} |
|
26 */ |
|
27 @Override |
|
28 public void onCreate(Bundle icicle) { |
|
29 Logger.debug(LOG_TAG, "onCreate(" + icicle + ")"); |
|
30 |
|
31 super.onCreate(icicle); |
|
32 setContentView(R.layout.fxaccount_create_account_not_allowed); |
|
33 TextView view = (TextView) findViewById(R.id.learn_more_link); |
|
34 ActivityUtils.linkTextView(view, R.string.fxaccount_account_create_not_allowed_learn_more, R.string.fxaccount_link_create_not_allowed); |
|
35 } |
|
36 } |