Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
abook_check
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abook_android
abook_check
Commits
06175d94
Commit
06175d94
authored
Jul 17, 2019
by
Jeong Gilmo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug #34404【Check Android 1.1.0】「編集画面の表示に失敗しました。」と、表示されると、編集ができなくなる。
- メッセージ表示なく、編集できるように修正
parent
50d281a4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/common/activity/ABVContentViewActivity.java
+10
-5
No files found.
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/common/activity/ABVContentViewActivity.java
View file @
06175d94
...
...
@@ -1354,12 +1354,16 @@ public abstract class ABVContentViewActivity extends ABVAuthenticatedActivity {
final
String
cmd
=
mCmd
;
Long
operationId
=
mOperationId
;
final
String
tempImagePath
=
ABVEnvironment
.
getInstance
().
getTempFilePath
(
getContentId
(),
taskKey
,
attachedFilename
);
//添付ファイルのTempパス
String
savedImagePath
=
ABVEnvironment
.
getInstance
().
getOperationTaskReportLevelDirPath
(
operationId
,
taskKey
,
0
)
+
"/"
+
attachedFilename
;
//保存された写真のパス
//
String savedImagePath = ABVEnvironment.getInstance().getOperationTaskReportLevelDirPath(operationId, taskKey,0) + "/" + attachedFilename; //保存された写真のパス
//保存されたイメージがあり、編集したいイメージのパスがTempがない場合、ファイルをTempにコピー
// パスがTempと一緒の場合、イメージが一回以上修正され、上書きしない。
if
(
FileUtil
.
exists
(
savedImagePath
)
&&
!
mEditFilePath
.
equals
(
tempImagePath
)){
if
(
mEditFilePath
!=
null
&&
!
mEditFilePath
.
equals
(
tempImagePath
)){
try
{
FileUtil
.
copy
(
savedImagePath
,
tempImagePath
,
true
);
//保存されたファイルをTempパスにコピー
File
editFile
=
new
File
(
mEditFilePath
);
String
savedImagePath
=
getDataDir
().
toString
()
+
editFile
.
getCanonicalPath
();
if
(
FileUtil
.
exists
(
savedImagePath
))
{
FileUtil
.
copy
(
savedImagePath
,
tempImagePath
,
true
);
//保存されたファイルをTempパスにコピー
}
}
catch
(
IOException
e
)
{
e
.
printStackTrace
();
return
;
...
...
@@ -1367,7 +1371,7 @@ public abstract class ABVContentViewActivity extends ABVAuthenticatedActivity {
}
if
(
FileUtil
.
exists
(
tempImagePath
)){
//Tempパスにファイルがある場合、編集を実行
//編集画面をコール
if
(
isRotatable
())
{
if
(
!
isNormalSize
()
&&
isRotatable
())
{
setFixedOrientation
(
true
);
//回転固定
}
PhotoEditActivity
dialog
=
new
PhotoEditActivity
(
ABVContentViewActivity
.
this
,
tempImagePath
);
//ロードして編集するイメージのパスを設定
...
...
@@ -1379,7 +1383,8 @@ public abstract class ABVContentViewActivity extends ABVAuthenticatedActivity {
webViewLoadUrl
(
String
.
format
(
"javascript:CHK.changeReportFormThumbnailImageForAnd('%s','%s')"
,
attachedFilename
,
tempImagePath
));
afterABookCheckApi
(
cmd
,
taskKey
,
0
,
""
,
null
);
mPhotoEditDialog
=
null
;
if
(
isRotatable
())
{
mEditFilePath
=
null
;
if
(!
isNormalSize
()
&&
isRotatable
())
{
setFixedOrientation
(
false
);
////回転可能
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment