if (mReComposer && mFirstStart > 93) {
start = mFirstStart;
}
else {
for (int j = mStatusBarHeight; j < lastBmp.getHeight(); j++) {
if (compareLines(lastBmp, currentBmp, j)) {
start = j;
break;
}
}
if (start == -1) {
Log.d(TAG, "src1 and src2 are same");
return false;
}
if (index == 1 && start >= 93) {
mFirstStart = start;
}
}
Log.d(TAG, "start="+start);
if (index == 2 && start > mFirstStart && !mReComposer) {
mReComposer = true;
mFirstStart = start;
compose(mFirstBitmap, mSecondBitmap, 1);
compose(mSecondBitmap, current, 2);
mFirstBitmap = null;
mSecondBitmap = null;
mFirstStart = -1;
return true;
}
if (index == 2 && mReComposer) {
mReComposer = false;
}
if (index == 1 && !mReComposer) {
mFirstBitmap = last;
mSecondBitmap = current;
}
状态栏动态改变导致的长截图拼图异常问题优化
最新推荐文章于 2024-07-29 00:02:12 发布