clean up "frozen" accounts and dapps.
This commit is contained in:
parent
5a576b7b3a
commit
9595df19a8
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue