1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/mobile/android/base/sync/setup/activities/SetupSuccessActivity.java Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,45 @@ 1.4 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.5 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.6 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.7 + 1.8 +package org.mozilla.gecko.sync.setup.activities; 1.9 + 1.10 +import org.mozilla.gecko.R; 1.11 +import org.mozilla.gecko.sync.setup.Constants; 1.12 +import org.mozilla.gecko.sync.setup.SyncAccounts; 1.13 + 1.14 +import android.os.Bundle; 1.15 +import android.view.View; 1.16 +import android.widget.TextView; 1.17 + 1.18 +public class SetupSuccessActivity extends SyncActivity { 1.19 + private TextView setupSubtitle; 1.20 + 1.21 + @Override 1.22 + public void onCreate(Bundle savedInstanceState) { 1.23 + super.onCreate(savedInstanceState); 1.24 + Bundle extras = this.getIntent().getExtras(); 1.25 + setContentView(R.layout.sync_setup_success); 1.26 + setupSubtitle = ((TextView) findViewById(R.id.setup_success_subtitle)); 1.27 + if (extras != null) { 1.28 + boolean isSetup = extras.getBoolean(Constants.INTENT_EXTRA_IS_SETUP); 1.29 + if (!isSetup) { 1.30 + setupSubtitle.setText(getString(R.string.sync_subtitle_manage)); 1.31 + } 1.32 + } 1.33 + } 1.34 + 1.35 + @Override 1.36 + public void onDestroy() { 1.37 + super.onDestroy(); 1.38 + } 1.39 + 1.40 + /* Click Handlers */ 1.41 + public void settingsClickHandler(View target) { 1.42 + SyncAccounts.openSyncSettings(this); 1.43 + } 1.44 + 1.45 + public void launchBrowser(View target) { 1.46 + ActivityUtils.openURLInFennec(this, null); 1.47 + } 1.48 +}