clean up "frozen" accounts and dapps.

This commit is contained in:
Yaroslav Dmytrotsa 2015-08-11 09:56:36 +03:00
parent 5a576b7b3a
commit 9595df19a8
2 changed files with 10 additions and 18 deletions

View File

@ -64,12 +64,9 @@ public abstract class BaseActivity extends AppCompatActivity implements
private static final String CONTRIBUTE_LINK = "https://github.com/syng-io";
private static final String CONTINUE_SEARCH_LINK = "dapp://syng.io/store?q=search%20query";
private ArrayList<String> mDAppNamesList = new ArrayList<>(Arrays.asList("Console", "DApps",
"EtherEx", "TrustDavis", "Augur", "Console", "DApps",
"EtherEx", "TrustDavis"));
private ArrayList<String> mDAppNamesList = new ArrayList<>(Arrays.asList("Console"));
private ArrayList<String> mAccountNamesList = new ArrayList<>(Arrays.asList("Cow", "Yaroslav", "Frank Underwood",
"Jarradh", "Adrian"));
private ArrayList<String> mAccountNamesList = new ArrayList<>(Arrays.asList("Cow"));
private ActionBarDrawerToggle mDrawerToggle;

View File

@ -35,21 +35,16 @@ public class MainActivity extends BaseActivity {
@Override
protected void onDAppClick(Dapp dapp) {
switch (dapp.getName()) {
case "Console":
switch (dapp.getUrl()) {
case "":
replaceFragment(new ConsoleFragment());
break;
case "DApps":
replaceFragment(new WebViewFragment());
break;
case "EtherEx":
replaceFragment(new WebViewFragment());
break;
case "TrustDavis":
replaceFragment(new WebViewFragment());
break;
case "Augur":
replaceFragment(new WebViewFragment());
default:
WebViewFragment wvF = new WebViewFragment();
Bundle args = new Bundle();
args.putString("url", dapp.getUrl());
wvF.setArguments(args);
replaceFragment(wvF);
break;
}
}