mirror of
https://github.com/roytam1/palemoon27.git
synced 2026-06-03 09:59:45 +00:00
46 lines
1.3 KiB
Java
46 lines
1.3 KiB
Java
/* 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.goanna.sync.setup.activities;
|
|
|
|
import org.mozilla.goanna.R;
|
|
import org.mozilla.goanna.sync.setup.Constants;
|
|
import org.mozilla.goanna.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);
|
|
}
|
|
}
|