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
498ac70c
Commit
498ac70c
authored
Sep 20, 2019
by
Lee Jaebin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#35097 報告回答の保存時に添付画像の設問に設定した画像が欠落する問題対応
parent
10818bb5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
17 additions
and
35 deletions
+17
-35
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/common/activity/ABVContentViewActivity.java
+11
-9
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/viewer/activity/HTMLWebViewActivity.java
+2
-2
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/viewer/activity/HTMLXWalkWebViewActivity.java
+2
-2
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/viewer/activity/ParentWebViewActivity.java
+0
-20
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/viewer/view/OperationTaskLayout.java
+2
-2
No files found.
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/common/activity/ABVContentViewActivity.java
View file @
498ac70c
...
...
@@ -863,7 +863,9 @@ public abstract class ABVContentViewActivity extends ABVAuthenticatedActivity {
abookCheckParam
.
put
(
key
,
uri
.
getQueryParameter
(
key
));
}
mCmd
=
abookCheckParam
.
get
(
ABookKeys
.
CMD
);
mTaskKey
=
abookCheckParam
.
get
(
ABookKeys
.
TASK_KEY
);
if
(
abookCheckParam
.
containsKey
(
ABookKeys
.
TASK_KEY
))
{
mTaskKey
=
abookCheckParam
.
get
(
ABookKeys
.
TASK_KEY
);
}
int
taskReportLevel
=
0
;
// 作業報告レベル(0:報告、1:報告(回答)、2:報告(回答))
if
(
abookCheckParam
.
containsKey
(
ABookKeys
.
TASK_REPORT_LEVEL
))
{
...
...
@@ -998,7 +1000,7 @@ public abstract class ABVContentViewActivity extends ABVAuthenticatedActivity {
}
}
else
if
(
mCmd
.
equals
(
ABookKeys
.
CMD_SAVE_ATTACHED
))
{
mAttachedFileName
=
abookCheckParam
.
get
(
ABookKeys
.
FILE_NAME
);
getAttachedDataUrl
();
getAttachedDataUrl
(
abookCheckParam
.
get
(
ABookKeys
.
TASK_KEY
)
);
}
else
if
(
mCmd
.
equals
(
ABookKeys
.
CMD_SHOW_REPORT_OZD
))
{
mReportFileName
=
abookCheckParam
.
get
(
ABookKeys
.
REPORT_FILE_NAME
);
// 作業報告画面改善
...
...
@@ -1076,11 +1078,11 @@ public abstract class ABVContentViewActivity extends ABVAuthenticatedActivity {
}
}
public
void
commonAttachedDataUrl
(
String
data
)
{
public
void
commonAttachedDataUrl
(
String
taskKey
,
String
data
)
{
boolean
isError
=
false
;
if
(
data
!=
null
)
{
try
{
String
imagePath
=
ABVEnvironment
.
getInstance
().
getTempFilePath
(
getContentId
(),
mT
askKey
,
mAttachedFileName
);
String
imagePath
=
ABVEnvironment
.
getInstance
().
getTempFilePath
(
getContentId
(),
t
askKey
,
mAttachedFileName
);
ABookCheckWebViewHelper
.
getInstance
().
decodeToImage
(
data
,
imagePath
);
//アプリ内のファイルのみ削除(Galleryファイルは削除しない)
if
(
mLocalFile
!=
null
&&
mLocalFile
.
getPath
().
contains
(
getPackageName
()))
{
...
...
@@ -1092,7 +1094,7 @@ public abstract class ABVContentViewActivity extends ABVAuthenticatedActivity {
Logger
.
e
(
TAG
,
e
);
}
}
afterABookCheckApi
(
mCmd
,
mT
askKey
,
isError
?
1
:
0
,
""
,
null
);
afterABookCheckApi
(
mCmd
,
t
askKey
,
isError
?
1
:
0
,
""
,
null
);
}
protected
Uri
attachmentImageProcessing
(
Uri
uri
)
throws
Exception
{
...
...
@@ -1145,12 +1147,12 @@ public abstract class ABVContentViewActivity extends ABVAuthenticatedActivity {
/**
* 添付ファイルのBase64文字列取得
*/
public
void
getAttachedDataUrl
(
)
{
runOnUiThread
(
new
Runnable
()
{
public
void
getAttachedDataUrl
(
final
String
taskKey
)
{
runOnUiThread
(
new
Runnable
()
{
@Override
public
void
run
()
{
webViewLoadUrl
(
"javascript:android.getAttachedDataUrl(
CHK.getAttachedDataUrl())"
);
}
webViewLoadUrl
(
"javascript:android.getAttachedDataUrl('"
+
taskKey
+
"',
CHK.getAttachedDataUrl())"
);
}
});
}
...
...
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/viewer/activity/HTMLWebViewActivity.java
View file @
498ac70c
...
...
@@ -485,8 +485,8 @@ public class HTMLWebViewActivity extends ParentWebViewActivity {
}
@JavascriptInterface
public
void
getAttachedDataUrl
(
String
data
)
{
commonAttachedDataUrl
(
data
);
public
void
getAttachedDataUrl
(
String
taskKey
,
String
data
)
{
commonAttachedDataUrl
(
taskKey
,
data
);
}
}
...
...
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/viewer/activity/HTMLXWalkWebViewActivity.java
View file @
498ac70c
...
...
@@ -522,8 +522,8 @@ public class HTMLXWalkWebViewActivity extends ParentWebViewActivity {
}
@org
.
xwalk
.
core
.
JavascriptInterface
public
void
getAttachedDataUrl
(
String
data
)
{
commonAttachedDataUrl
(
data
);
public
void
getAttachedDataUrl
(
String
taskKey
,
String
data
)
{
commonAttachedDataUrl
(
taskKey
,
data
);
}
}
...
...
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/viewer/activity/ParentWebViewActivity.java
View file @
498ac70c
...
...
@@ -131,26 +131,6 @@ public class ParentWebViewActivity extends ABVCheckContentViewActivity {
}
@Override
public
void
commonAttachedDataUrl
(
String
data
)
{
boolean
isError
=
false
;
if
(
data
!=
null
)
{
try
{
String
imagePath
=
ABVEnvironment
.
getInstance
().
getTempFilePath
(
getContentId
(),
mTaskKey
,
mAttachedFileName
);
ABookCheckWebViewHelper
.
getInstance
().
decodeToImage
(
data
,
imagePath
);
//アプリ内のファイルのみ削除(Galleryファイルは削除しない)
if
(
mLocalFile
!=
null
&&
mLocalFile
.
getPath
().
contains
(
getPackageName
()))
{
FileUtil
.
delete
(
mLocalFile
);
}
mLocalFile
=
null
;
}
catch
(
Exception
e
)
{
isError
=
true
;
Logger
.
e
(
TAG
,
e
);
}
}
afterABookCheckApi
(
mCmd
,
mTaskKey
,
isError
?
1
:
0
,
""
,
null
);
}
@Override
protected
void
commonConfigureHeader
()
{
if
(
mStatusCode
==
Constant
.
XWalkWebViewDisplayStatus
.
InitView
)
{
//フォームが非表示時のみヘルプボタン表示
helpButton
.
setVisibility
(
View
.
VISIBLE
);
...
...
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/viewer/view/OperationTaskLayout.java
View file @
498ac70c
...
...
@@ -530,8 +530,8 @@ public class OperationTaskLayout extends RelativeLayout {
private
class
JsInf
{
@JavascriptInterface
public
void
getAttachedDataUrl
(
String
data
)
{
((
ABVContentViewActivity
)
OperationTaskLayout
.
this
.
mContext
).
commonAttachedDataUrl
(
data
);
public
void
getAttachedDataUrl
(
String
taskKey
,
String
data
)
{
((
ABVContentViewActivity
)
OperationTaskLayout
.
this
.
mContext
).
commonAttachedDataUrl
(
taskKey
,
data
);
}
}
}
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