Skip to content

Commit

Permalink
Merge pull request #197 from xidaokun/dev_v1.3
Browse files Browse the repository at this point in the history
fix crash
  • Loading branch information
li.fayi authored Apr 26, 2019
2 parents c624ebe + a1c9f48 commit 5ac05b3
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -204,13 +204,13 @@ public void onReceivedError(WebView view, WebResourceRequest request, WebResourc
private synchronized void loadUrl(String url){
Log.i("schemeLoadurl", "url:"+url);
if(StringUtil.isNullOrEmpty(url)) return;
if(url.contains("identity")) {
if(url.startsWith("elaphant") && url.contains("identity")) {
AuthorizeManager.startWalletActivity(ExploreWebActivity.this, url, "com.breadwallet.presenter.activities.did.DidAuthorizeActivity");
finish();
} else if(url.contains("elapay")) {
} else if(url.startsWith("elaphant") && url.contains("elapay")) {
AuthorizeManager.startWalletActivity(ExploreWebActivity.this, url, "com.breadwallet.presenter.activities.WalletActivity");
finish();
} else if(url.contains("eladposvote")) {
} else if(url.contains("elaphant") && url.contains("eladposvote")) {
UiUtils.startVoteActivity(ExploreWebActivity.this, url);
}else {
webView.loadUrl(url);
Expand Down

0 comments on commit 5ac05b3

Please sign in to comment.