diff -r 000000000000 -r 6474c204b198 mobile/android/base/sync/setup/activities/SetupSuccessActivity.java --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mobile/android/base/sync/setup/activities/SetupSuccessActivity.java Wed Dec 31 06:09:35 2014 +0100 @@ -0,0 +1,45 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + +package org.mozilla.gecko.sync.setup.activities; + +import org.mozilla.gecko.R; +import org.mozilla.gecko.sync.setup.Constants; +import org.mozilla.gecko.sync.setup.SyncAccounts; + +import android.os.Bundle; +import android.view.View; +import android.widget.TextView; + +public class SetupSuccessActivity extends SyncActivity { + private TextView setupSubtitle; + + @Override + public void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + Bundle extras = this.getIntent().getExtras(); + setContentView(R.layout.sync_setup_success); + setupSubtitle = ((TextView) findViewById(R.id.setup_success_subtitle)); + if (extras != null) { + boolean isSetup = extras.getBoolean(Constants.INTENT_EXTRA_IS_SETUP); + if (!isSetup) { + setupSubtitle.setText(getString(R.string.sync_subtitle_manage)); + } + } + } + + @Override + public void onDestroy() { + super.onDestroy(); + } + + /* Click Handlers */ + public void settingsClickHandler(View target) { + SyncAccounts.openSyncSettings(this); + } + + public void launchBrowser(View target) { + ActivityUtils.openURLInFennec(this, null); + } +}