use of wannabit.io.cosmostaion.dialog.Dialog_ChoiceNet in project cosmostation-android by cosmostation.
the class IntroActivity method onClick.
@Override
public void onClick(View v) {
if (v.equals(mStart)) {
Bundle bundle = new Bundle();
Dialog_ChoiceNet dialog = Dialog_ChoiceNet.newInstance(bundle);
dialog.setCancelable(true);
getSupportFragmentManager().beginTransaction().add(dialog, "dialog").commitNowAllowingStateLoss();
}
}
use of wannabit.io.cosmostaion.dialog.Dialog_ChoiceNet in project cosmostation-android by cosmostation.
the class CreateActivity method onPostResume.
@Override
protected void onPostResume() {
super.onPostResume();
if (mChain == null) {
Dialog_ChoiceNet dialog = Dialog_ChoiceNet.newInstance(null);
dialog.setCancelable(false);
getSupportFragmentManager().beginTransaction().add(dialog, "dialog").commitNowAllowingStateLoss();
} else {
onShowWaitDialog();
if (mWords == null || mWords.size() != 24) {
onGenWords();
}
onUpdateView();
}
}
use of wannabit.io.cosmostaion.dialog.Dialog_ChoiceNet in project cosmostation-android by cosmostation.
the class RestoreActivity method onPostResume.
@Override
protected void onPostResume() {
super.onPostResume();
if (mChain == null) {
Dialog_ChoiceNet dialog = Dialog_ChoiceNet.newInstance(null);
dialog.setCancelable(false);
getSupportFragmentManager().beginTransaction().add(dialog, "dialog").commitNowAllowingStateLoss();
} else {
onUpdateView();
}
}
use of wannabit.io.cosmostaion.dialog.Dialog_ChoiceNet in project cosmostation-android by cosmostation.
the class MainSettingFragment method onClick.
@Override
public void onClick(View v) {
if (v.equals(mBtnAddWallet)) {
Bundle bundle = new Bundle();
Dialog_ChoiceNet dialog = Dialog_ChoiceNet.newInstance(bundle);
dialog.setCancelable(true);
getMainActivity().getSupportFragmentManager().beginTransaction().add(dialog, "dialog").commitNowAllowingStateLoss();
} else if (v.equals(mBtnWallet)) {
startActivity(new Intent(getBaseActivity(), AccountListActivity.class));
} else if (v.equals(mBtnAlaram)) {
Toast.makeText(getBaseActivity(), R.string.str_preparing, Toast.LENGTH_SHORT).show();
} else if (v.equals(mBtnAppLock)) {
startActivity(new Intent(getBaseActivity(), AppLockSetActivity.class));
} else if (v.equals(mBtnCurrency)) {
Dialog_Currency_Set currency_dialog = Dialog_Currency_Set.newInstance(null);
currency_dialog.setCancelable(true);
currency_dialog.setTargetFragment(this, SELECT_CURRENCY);
getFragmentManager().beginTransaction().add(currency_dialog, "dialog").commitNowAllowingStateLoss();
return;
} else if (v.equals(mBtnBasePrice)) {
// return;
return;
} else if (v.equals(mBtnExplore)) {
String url = WUtil.getExplorer(getMainActivity().mBaseChain);
Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(url));
startActivity(intent);
} else if (v.equals(mBtnNotice)) {
String url = EXPLORER_NOTICE_MINTSCAN + WDp.getChainNameByBaseChain(getMainActivity().mBaseChain);
Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(url));
startActivity(intent);
} else if (v.equals(mBtnGuide)) {
if (Locale.getDefault().getLanguage().toLowerCase().equals("ko")) {
Intent guideIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("https://guide.cosmostation.io/app_wallet_ko.html"));
startActivity(guideIntent);
} else {
Intent guideIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("https://guide.cosmostation.io/app_wallet_en.html"));
startActivity(guideIntent);
}
} else if (v.equals(mBtnTelegram)) {
Intent telegram = new Intent(Intent.ACTION_VIEW, Uri.parse("https://t.me/cosmostation"));
startActivity(telegram);
} else if (v.equals(mBtnHomepage)) {
Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse("https://www.cosmostation.io/"));
startActivity(intent);
} else if (v.equals(mBtnTerm)) {
if (Locale.getDefault().getLanguage().toLowerCase().equals("ko")) {
Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse("https://www.cosmostation.io/service_kr.html"));
startActivity(intent);
} else {
Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse("https://www.cosmostation.io/service_en.html"));
startActivity(intent);
}
} else if (v.equals(mBtnGithub)) {
Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse("https://github.com/cosmostation/cosmostation-android"));
startActivity(intent);
} else if (v.equals(mBtnVersion)) {
Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setData(Uri.parse("market://details?id=" + getMainActivity().getPackageName()));
startActivity(intent);
} else if (v.equals(mBtnStarnameWc)) {
AlertDialogUtils.showDoubleButtonDialog(getMainActivity(), getString(R.string.str_starname_walletconnect_alert_title), getString(R.string.str_starname_walletconnect_alert_msg), getString(R.string.str_cancel), null, getString(R.string.str_continue), view -> {
Intent resultIntent = new Intent();
onActivityResult(SELECT_STARNAME_WALLET_CONNECT, Activity.RESULT_OK, resultIntent);
});
}
}
Aggregations