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.sync.setup.activities; michael@0: michael@0: import org.mozilla.gecko.R; michael@0: import org.mozilla.gecko.sync.setup.Constants; michael@0: import org.mozilla.gecko.sync.setup.SyncAccounts; michael@0: michael@0: import android.os.Bundle; michael@0: import android.view.View; michael@0: import android.widget.TextView; michael@0: michael@0: public class SetupSuccessActivity extends SyncActivity { michael@0: private TextView setupSubtitle; michael@0: michael@0: @Override michael@0: public void onCreate(Bundle savedInstanceState) { michael@0: super.onCreate(savedInstanceState); michael@0: Bundle extras = this.getIntent().getExtras(); michael@0: setContentView(R.layout.sync_setup_success); michael@0: setupSubtitle = ((TextView) findViewById(R.id.setup_success_subtitle)); michael@0: if (extras != null) { michael@0: boolean isSetup = extras.getBoolean(Constants.INTENT_EXTRA_IS_SETUP); michael@0: if (!isSetup) { michael@0: setupSubtitle.setText(getString(R.string.sync_subtitle_manage)); michael@0: } michael@0: } michael@0: } michael@0: michael@0: @Override michael@0: public void onDestroy() { michael@0: super.onDestroy(); michael@0: } michael@0: michael@0: /* Click Handlers */ michael@0: public void settingsClickHandler(View target) { michael@0: SyncAccounts.openSyncSettings(this); michael@0: } michael@0: michael@0: public void launchBrowser(View target) { michael@0: ActivityUtils.openURLInFennec(this, null); michael@0: } michael@0: }