mobile/android/base/sync/setup/activities/SetupSuccessActivity.java

Wed, 31 Dec 2014 07:22:50 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 07:22:50 +0100
branch
TOR_BUG_3246
changeset 4
fc2d59ddac77
permissions
-rw-r--r--

Correct previous dual key logic pending first delivery installment.

     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/. */
     5 package org.mozilla.gecko.sync.setup.activities;
     7 import org.mozilla.gecko.R;
     8 import org.mozilla.gecko.sync.setup.Constants;
     9 import org.mozilla.gecko.sync.setup.SyncAccounts;
    11 import android.os.Bundle;
    12 import android.view.View;
    13 import android.widget.TextView;
    15 public class SetupSuccessActivity extends SyncActivity {
    16   private TextView setupSubtitle;
    18   @Override
    19   public void onCreate(Bundle savedInstanceState) {
    20     super.onCreate(savedInstanceState);
    21     Bundle extras = this.getIntent().getExtras();
    22     setContentView(R.layout.sync_setup_success);
    23     setupSubtitle = ((TextView) findViewById(R.id.setup_success_subtitle));
    24     if (extras != null) {
    25       boolean isSetup = extras.getBoolean(Constants.INTENT_EXTRA_IS_SETUP);
    26       if (!isSetup) {
    27         setupSubtitle.setText(getString(R.string.sync_subtitle_manage));
    28       }
    29     }
    30   }
    32   @Override
    33   public void onDestroy() {
    34     super.onDestroy();
    35   }
    37   /* Click Handlers */
    38   public void settingsClickHandler(View target) {
    39     SyncAccounts.openSyncSettings(this);
    40   }
    42   public void launchBrowser(View target) {
    43     ActivityUtils.openURLInFennec(this, null);
    44   }
    45 }

mercurial