Commit 7ea9e804 by Lee Jaebin

プロジェクトPDFのみ、作業追加、更新ができるように修正

parent 479d019d
......@@ -1819,7 +1819,18 @@ public class ContentViewActivity extends ABVContentViewActivity {
}
Logger.d(TAG, "[singleTapMotion]:isOnClick=false");
if (!mPageScrollView.isZooming()) {
if (mPageScrollView.isZooming()) {
if (!isProjectPdf) {
ZoomRelativeLayout zoomRelativeLayout = mShowPageLayout.get(mCurrentPageNumber);
if (zoomRelativeLayout == null) {
Logger.e(TAG, "zoomRelativeLayout is null");
return;
}
// 拡大中は拡大率を表示
int scale = (int) (mShowPageLayout.get(mCurrentPageNumber).getScaleFactor() * 100f);
Toast.makeText(getApplicationContext(), String.format("%d%%", scale), Toast.LENGTH_SHORT).show();
}
} else {
TranslateAnimation toolBarAnimation;
if (mToolBar.getVisibility() == View.GONE) {
setToolbarVisable(true);
......
......@@ -156,7 +156,7 @@ public class ProjectTaskLayout extends RelativeLayout {
final Uri uri = Uri.parse(url);
if (url.contains(ABookKeys.ABOOK_CHECK_API)) {
((ContentViewActivity)context).commonShouldOverrideUrlLoading(uri, currentTaskDto);
((ContentViewActivity)context).commonShouldOverrideUrlLoading(uri, currentTaskDto);
}
return true;
......
......@@ -184,7 +184,9 @@ public class ZoomRelativeLayout extends RelativeLayout {
@Override
protected void dispatchDraw(Canvas canvas) {
canvas.save(Canvas.MATRIX_SAVE_FLAG);
// canvas.concat(imgMatrix);
if (!isProjectPdf) {
canvas.concat(imgMatrix);
}
super.dispatchDraw(canvas);
canvas.restore();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment