去除2.3低版本API兼容性方法,修复2.3崩溃bug

This commit is contained in:
zengfantian 2015-10-29 10:30:52 +08:00
parent bb9b23e75c
commit 0e31831a87
1 changed files with 4 additions and 3 deletions

View File

@ -27,6 +27,7 @@ import android.widget.LinearLayout;
import android.widget.ProgressBar;
import android.widget.RelativeLayout;
import android.widget.TextView;
import cn.sharesdk.framework.Platform;
import cn.sharesdk.framework.Platform.ShareParams;
import cn.sharesdk.sina.weibo.SinaWeibo;
@ -127,8 +128,8 @@ public class WebPageActivity extends BaseActivity implements
@Override
public void initParms(Bundle parms) {
linkURL = parms.getString(LINK_URL, linkURL);
mCurrentTile = parms.getString(LINK_URL, mCurrentTile);
linkURL = parms.getString(LINK_URL);
mCurrentTile = parms.getString(TITLE);
isShowShare = parms.getBoolean(SHOW_SHARE, false);
isCanZoom = parms.getBoolean(IS_CAN_ZOOM, true);
}
@ -326,7 +327,7 @@ public class WebPageActivity extends BaseActivity implements
SslError error) {
handler.proceed();
super.onReceivedSslError(view, handler, error);
Log.i(TAG, "onReceivedSslError--->" + "加载数据失败,错误码:"+ error.getUrl());
Log.i(TAG, "onReceivedSslError--->" + "加载数据失败");
isError = true;
}