设为首页 加入收藏

TOP

Android WallpaperManager解析及BUG解决(二)
2014-11-24 01:45:45 来源: 作者: 【 】 浏览:1
Tags:Android WallpaperManager 解析 BUG 解决
, "failed parsing " + file + " " + e);
}
try {
if (stream != null) {
stream.close();
}
} catch (IOException e) {
// Ignore
}


if (!success) {
mWidth = -1;
mHeight = -1;
mName = "";
}


// We always want to have some reasonable width hint.
WindowManager wm = (WindowManager)mContext.getSystemService(Context.WINDOW_SERVICE);
Display d = wm.getDefaultDisplay();
int baseSize = d.getMaximumSizeDimension();
if (mWidth < baseSize) {
mWidth = baseSize;
}
if (mHeight < baseSize) {
mHeight = baseSize;
}
}


首页 上一页 1 2 下一页 尾页 2/2/2
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇用Python写的一个小小的回收站定.. 下一篇Linux shell中的那些小把戏

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容: