From c0acdc85a705add010e02201001acafc41d71124 Mon Sep 17 00:00:00 2001 From: dtvv Date: Mon, 3 Sep 2018 10:05:46 -0600 Subject: [PATCH] Remove network package testing implementation --- .../activities/IntroActivity.java | 48 ------------------- 1 file changed, 48 deletions(-) diff --git a/app/src/main/java/cy/agorise/crystalwallet/activities/IntroActivity.java b/app/src/main/java/cy/agorise/crystalwallet/activities/IntroActivity.java index 6fa59d2..e3ad9b0 100644 --- a/app/src/main/java/cy/agorise/crystalwallet/activities/IntroActivity.java +++ b/app/src/main/java/cy/agorise/crystalwallet/activities/IntroActivity.java @@ -63,11 +63,6 @@ public class IntroActivity extends CustomActivity { ButterKnife.bind(this); - /* - * Test connection with server - * */ - NetworkUtility.testServerConnnection(this); - // Appbar animation mSurfaceView.getHolder().addCallback(new SurfaceHolder.Callback() { @Override @@ -151,55 +146,12 @@ public class IntroActivity extends CustomActivity { @OnClick(R.id.btnCreateAccount) public void createAccount() { - /* - * Test connection with server, if no conection user can not continue - * - * */ - final GrapheneApiGenerator.OnResponsesWebSocket onResponsesWebSocket = new GrapheneApiGenerator.OnResponsesWebSocket() { - @Override - public void onSuccess() { - /* - * Open the window to create seed and account - * */ - Intent intent = new Intent(globalActivity, CreateSeedActivity.class); - startActivity(intent); - } - @Override - public void onError(Exception exception) { - //Nothing to implement, internally the user will see a toast - } - }; - NetworkUtility.testServerConnnectionNormalError(this,onResponsesWebSocket); } @OnClick(R.id.btnImportAccount) public void importAccount() { - /* - * Test connection with server, if no conection user can not continue - * - * */ - final GrapheneApiGenerator.OnResponsesWebSocket onResponsesWebSocket = new GrapheneApiGenerator.OnResponsesWebSocket() { - @Override - public void onSuccess() { - FragmentTransaction ft = getSupportFragmentManager().beginTransaction(); - Fragment prev = getSupportFragmentManager().findFragmentByTag("importAccountOptions"); - if (prev != null) { - ft.remove(prev); - } - ft.addToBackStack(null); - - // Create and show the dialog. - ImportAccountOptionsFragment newFragment = ImportAccountOptionsFragment.newInstance(); - newFragment.show(ft, "importAccountOptions"); - } - @Override - public void onError(Exception exception) { - //Nothing to implement, internally the user will see a toast - } - }; - NetworkUtility.testServerConnnectionNormalError(this,onResponsesWebSocket); } }