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
af48aedb
Commit
af48aedb
authored
Apr 22, 2020
by
yuichiro ogawa
Browse files
Options
Browse Files
Download
Plain Diff
Merge commit '
96ea7e01
' into features/1.2.0_ogawa-y
parents
06604a2e
96ea7e01
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
53 additions
and
43 deletions
+53
-43
ABVJE_BL/src/jp/agentec/abook/abv/bl/common/Constant.java
+0
-1
ABVJE_Res_Default_Android/res/values-ja/strings.xml
+3
-0
ABVJE_Res_Default_Android/res/values-ko/strings.xml
+2
-0
ABVJE_Res_Default_Android/res/values/strings.xml
+3
-0
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/common/activity/ABVContentViewActivity.java
+38
-30
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/viewer/activity/CheckOZDViewActivity.java
+1
-1
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/viewer/activity/ContentViewActivity.java
+3
-5
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/viewer/activity/ParentWebViewActivity.java
+3
-6
No files found.
ABVJE_BL/src/jp/agentec/abook/abv/bl/common/Constant.java
View file @
af48aedb
...
@@ -78,7 +78,6 @@ public class Constant {
...
@@ -78,7 +78,6 @@ public class Constant {
public
interface
XWalkOpenType
{
public
interface
XWalkOpenType
{
int
DEFAULT
=
-
1
;
int
DEFAULT
=
-
1
;
int
TASK_DERECTION
=
1
;
int
TASK_REPORT
=
2
;
int
TASK_REPORT
=
2
;
int
PANO_EDIT
=
3
;
int
PANO_EDIT
=
3
;
}
}
...
...
ABVJE_Res_Default_Android/res/values-ja/strings.xml
View file @
af48aedb
...
@@ -1420,4 +1420,7 @@
...
@@ -1420,4 +1420,7 @@
<!--稼働時間登録可否チェック-->
<!--稼働時間登録可否チェック-->
<string
name=
"msg_error_check_running_info"
>
稼働時間情報のチェックに失敗しました。
</string>
<string
name=
"msg_error_check_running_info"
>
稼働時間情報のチェックに失敗しました。
</string>
<string
name=
"msg_report_close"
>
報告画面を閉じますか?
</string>
</resources>
</resources>
ABVJE_Res_Default_Android/res/values-ko/strings.xml
View file @
af48aedb
...
@@ -1428,4 +1428,6 @@
...
@@ -1428,4 +1428,6 @@
<!--稼働時間登録可否チェック-->
<!--稼働時間登録可否チェック-->
<string
name=
"msg_error_check_running_info"
>
실행 상태를 확인하지 못했습니다.
</string>
<string
name=
"msg_error_check_running_info"
>
실행 상태를 확인하지 못했습니다.
</string>
<string
name=
"msg_report_close"
>
보고화면을 닫으시겠습니까?
</string>
</resources>
</resources>
ABVJE_Res_Default_Android/res/values/strings.xml
View file @
af48aedb
...
@@ -1426,4 +1426,6 @@
...
@@ -1426,4 +1426,6 @@
<!--稼働時間登録可否チェック-->
<!--稼働時間登録可否チェック-->
<string
name=
"msg_error_check_running_info"
>
Failed to check running status.
</string>
<string
name=
"msg_error_check_running_info"
>
Failed to check running status.
</string>
<string
name=
"msg_report_close"
>
Do you want to close the report screen?
</string>
</resources>
</resources>
\ No newline at end of file
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/common/activity/ABVContentViewActivity.java
View file @
af48aedb
...
@@ -780,34 +780,6 @@ public abstract class ABVContentViewActivity extends ABVAuthenticatedActivity {
...
@@ -780,34 +780,6 @@ public abstract class ABVContentViewActivity extends ABVAuthenticatedActivity {
protected
void
finishActivity
()
{}
protected
void
finishActivity
()
{}
protected
void
webViewLoadUrl
(
String
url
){}
protected
void
webViewLoadUrl
(
String
url
){}
public
void
onClickOperationHome
(
View
v
)
{
if
(
mXWalkOpenType
==
Constant
.
XWalkOpenType
.
PANO_EDIT
)
{
// リソースパターンの適用
ABookAlertDialog
alertDialog
=
AlertDialogUtil
.
createAlertDialog
(
ABVContentViewActivity
.
this
,
PatternStringUtil
.
patternToString
(
getApplicationContext
(),
R
.
string
.
pano_edit
,
getUserPref
(
AppDefType
.
UserPrefKey
.
RESOURCE_PATTERN_TYPE
,
0
)));
// リソースパターンの適用
alertDialog
.
setMessage
(
PatternStringUtil
.
patternToString
(
getApplicationContext
(),
R
.
string
.
msg_confirm_save_pano_edit
,
getUserPref
(
AppDefType
.
UserPrefKey
.
RESOURCE_PATTERN_TYPE
,
0
)));
alertDialog
.
setNegativeButton
(
R
.
string
.
cancel
,
null
);
alertDialog
.
setPositiveButton
(
R
.
string
.
ok
,
new
DialogInterface
.
OnClickListener
()
{
@Override
public
void
onClick
(
DialogInterface
dialog
,
int
which
)
{
callUnloadAuth
();
dialog
.
dismiss
();
finish
();
}
});
alertDialog
.
show
();
}
else
{
// 作業終了する時、作業ID設定して作業一覧で使用するメソットを行う。
putUserPref
(
AppDefType
.
UserPrefKey
.
SYNC_TARGET_OPERATION_ID
,
mOperationId
);
// 作業IDの設定
finishActivity
();
// 開いてる画面を閉じる
}
}
/**
/**
* Be override
* Be override
*/
*/
...
@@ -1586,10 +1558,45 @@ public abstract class ABVContentViewActivity extends ABVAuthenticatedActivity {
...
@@ -1586,10 +1558,45 @@ public abstract class ABVContentViewActivity extends ABVAuthenticatedActivity {
protected
void
showPhotoEditDialog
(
PhotoEditActivity
photoEditDialog
)
{
protected
void
showPhotoEditDialog
(
PhotoEditActivity
photoEditDialog
)
{
if
(
this
.
mPhotoEditDialog
!=
null
)
{
if
(
this
.
mPhotoEditDialog
!=
null
)
{
this
.
mPhotoEditDialog
.
dismiss
();
this
.
mPhotoEditDialog
.
dismiss
();
}
}
else
{
else
{
this
.
mPhotoEditDialog
=
photoEditDialog
;
this
.
mPhotoEditDialog
=
photoEditDialog
;
this
.
mPhotoEditDialog
.
show
();
this
.
mPhotoEditDialog
.
show
();
}
}
}
}
/**
* 報告画面を閉じる前の確認ダイアログ画面
* @param ozFormFlg
*/
protected
void
showBackConfirmDialog
(
final
boolean
ozFormFlg
)
{
ABookAlertDialog
alertDialog
=
AlertDialogUtil
.
createAlertDialog
(
this
,
R
.
string
.
app_name
);
alertDialog
.
setMessage
(
R
.
string
.
msg_report_close
);
alertDialog
.
setNegativeButton
(
R
.
string
.
cancel
,
null
);
alertDialog
.
setPositiveButton
(
R
.
string
.
ok
,
new
DialogInterface
.
OnClickListener
()
{
@Override
public
void
onClick
(
DialogInterface
dialog
,
int
which
)
{
if
(
mOperationId
!=
null
&&
mOperationId
>
-
1
)
{
putUserPref
(
AppDefType
.
UserPrefKey
.
SYNC_TARGET_OPERATION_ID
,
mOperationId
);
}
if
(
ozFormFlg
)
{
// 帳票フォームで報告追加なしの場合
if
(
ActivityHandlingHelper
.
getInstance
().
searchOzdActivityStack
())
{
// OZD画面で画面遷移処理
goToMain
();
// 一覧画面に遷移
}
else
{
finishActivity
();
// 一覧画面に遷移
}
}
else
{
// 報告画面の場合
if
(
isLinkedContent
)
{
goToBack
();
}
else
{
finishActivity
();
}
}
}
});
alertDialog
.
show
();
}
}
}
\ No newline at end of file
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/viewer/activity/CheckOZDViewActivity.java
View file @
af48aedb
...
@@ -369,7 +369,7 @@ public class CheckOZDViewActivity extends ABVContentViewActivity {
...
@@ -369,7 +369,7 @@ public class CheckOZDViewActivity extends ABVContentViewActivity {
ozdCancelProcess
();
// Ozd作業画面を閉じる
ozdCancelProcess
();
// Ozd作業画面を閉じる
}
else
{
}
else
{
// 作業追加区分がなしの場合
// 作業追加区分がなしの場合
goToMain
();
// 一覧画面に遷移
showBackConfirmDialog
(
true
);
}
}
}
else
{
}
else
{
return
super
.
onKeyUp
(
keyCode
,
event
);
return
super
.
onKeyUp
(
keyCode
,
event
);
...
...
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/viewer/activity/ContentViewActivity.java
View file @
af48aedb
...
@@ -1535,11 +1535,9 @@ public class ContentViewActivity extends ABVContentViewActivity {
...
@@ -1535,11 +1535,9 @@ public class ContentViewActivity extends ABVContentViewActivity {
public
boolean
onKeyUp
(
int
keyCode
,
KeyEvent
event
)
{
public
boolean
onKeyUp
(
int
keyCode
,
KeyEvent
event
)
{
if
(
keyCode
==
KeyEvent
.
KEYCODE_BACK
)
{
if
(
keyCode
==
KeyEvent
.
KEYCODE_BACK
)
{
Logger
.
d
(
TAG
,
"KeyEvent.KEYCODE_BACK"
);
Logger
.
d
(
TAG
,
"KeyEvent.KEYCODE_BACK"
);
if
(
mXWalkOpenType
==
Constant
.
XWalkOpenType
.
TASK_REPORT
)
{
if
(
mOperationId
!=
null
&&
mOperationId
>
-
1
)
{
showBackConfirmDialog
(
false
);
putUserPref
(
AppDefType
.
UserPrefKey
.
SYNC_TARGET_OPERATION_ID
,
mOperationId
);
}
else
if
(
isVideoMax
)
{
}
if
(
isVideoMax
)
{
videoMaxToDefault
();
videoMaxToDefault
();
}
else
if
(
isMarking
)
{
}
else
if
(
isMarking
)
{
mMarkingLayout
.
showSaveDialog
();
mMarkingLayout
.
showSaveDialog
();
...
...
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/viewer/activity/ParentWebViewActivity.java
View file @
af48aedb
...
@@ -194,12 +194,11 @@ public class ParentWebViewActivity extends ABVContentViewActivity {
...
@@ -194,12 +194,11 @@ public class ParentWebViewActivity extends ABVContentViewActivity {
@Override
@Override
public
boolean
onKeyUp
(
int
keyCode
,
KeyEvent
event
)
{
public
boolean
onKeyUp
(
int
keyCode
,
KeyEvent
event
)
{
if
(
keyCode
==
KeyEvent
.
KEYCODE_BACK
)
{
if
(
keyCode
==
KeyEvent
.
KEYCODE_BACK
)
{
if
(
mXWalkOpenType
==
Constant
.
XWalkOpenType
.
PANO_EDIT
)
{
if
(
mXWalkOpenType
==
Constant
.
XWalkOpenType
.
TASK_REPORT
)
{
showBackConfirmDialog
(
false
);
}
else
if
(
mXWalkOpenType
==
Constant
.
XWalkOpenType
.
PANO_EDIT
)
{
showConfirmSavePanoEdit
();
showConfirmSavePanoEdit
();
}
else
{
}
else
{
if
(
mOperationId
!=
null
&&
mOperationId
>
-
1
)
{
putUserPref
(
AppDefType
.
UserPrefKey
.
SYNC_TARGET_OPERATION_ID
,
mOperationId
);
}
if
(
isLinkedContent
)
{
if
(
isLinkedContent
)
{
goToBack
();
goToBack
();
}
else
{
}
else
{
...
@@ -462,8 +461,6 @@ public class ParentWebViewActivity extends ABVContentViewActivity {
...
@@ -462,8 +461,6 @@ public class ParentWebViewActivity extends ABVContentViewActivity {
@Override
@Override
public
boolean
dispatchKeyEvent
(
KeyEvent
event
)
{
public
boolean
dispatchKeyEvent
(
KeyEvent
event
)
{
// KAGOME Ph2 WebView表示時に戻るボタンの誤打で報告が消えることがあるため非活性に変更
if
(
event
.
getKeyCode
()
==
KeyEvent
.
KEYCODE_BACK
)
{
return
true
;}
if
(
event
.
getAction
()==
KeyEvent
.
ACTION_UP
)
{
if
(
event
.
getAction
()==
KeyEvent
.
ACTION_UP
)
{
switch
(
event
.
getKeyCode
())
{
switch
(
event
.
getKeyCode
())
{
case
KeyEvent
.
KEYCODE_ENTER
:
case
KeyEvent
.
KEYCODE_ENTER
:
...
...
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