Wed, 31 Dec 2014 07:22:50 +0100
Correct previous dual key logic pending first delivery installment.
michael@0 | 1 | /* This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 2 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 3 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
michael@0 | 4 | |
michael@0 | 5 | package org.mozilla.gecko.sync.setup.activities; |
michael@0 | 6 | |
michael@0 | 7 | import org.mozilla.gecko.R; |
michael@0 | 8 | import org.mozilla.gecko.sync.setup.Constants; |
michael@0 | 9 | import org.mozilla.gecko.sync.setup.SyncAccounts; |
michael@0 | 10 | |
michael@0 | 11 | import android.os.Bundle; |
michael@0 | 12 | import android.view.View; |
michael@0 | 13 | import android.widget.TextView; |
michael@0 | 14 | |
michael@0 | 15 | public class SetupSuccessActivity extends SyncActivity { |
michael@0 | 16 | private TextView setupSubtitle; |
michael@0 | 17 | |
michael@0 | 18 | @Override |
michael@0 | 19 | public void onCreate(Bundle savedInstanceState) { |
michael@0 | 20 | super.onCreate(savedInstanceState); |
michael@0 | 21 | Bundle extras = this.getIntent().getExtras(); |
michael@0 | 22 | setContentView(R.layout.sync_setup_success); |
michael@0 | 23 | setupSubtitle = ((TextView) findViewById(R.id.setup_success_subtitle)); |
michael@0 | 24 | if (extras != null) { |
michael@0 | 25 | boolean isSetup = extras.getBoolean(Constants.INTENT_EXTRA_IS_SETUP); |
michael@0 | 26 | if (!isSetup) { |
michael@0 | 27 | setupSubtitle.setText(getString(R.string.sync_subtitle_manage)); |
michael@0 | 28 | } |
michael@0 | 29 | } |
michael@0 | 30 | } |
michael@0 | 31 | |
michael@0 | 32 | @Override |
michael@0 | 33 | public void onDestroy() { |
michael@0 | 34 | super.onDestroy(); |
michael@0 | 35 | } |
michael@0 | 36 | |
michael@0 | 37 | /* Click Handlers */ |
michael@0 | 38 | public void settingsClickHandler(View target) { |
michael@0 | 39 | SyncAccounts.openSyncSettings(this); |
michael@0 | 40 | } |
michael@0 | 41 | |
michael@0 | 42 | public void launchBrowser(View target) { |
michael@0 | 43 | ActivityUtils.openURLInFennec(this, null); |
michael@0 | 44 | } |
michael@0 | 45 | } |