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
fe870d7b
Commit
fe870d7b
authored
Jul 08, 2019
by
Lee Jaebin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
360編集画面で端末の戻るボタンを修正
parent
c9b298e1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
19 deletions
+30
-19
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/common/activity/ABVContentViewActivity.java
+25
-18
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/viewer/activity/ParentWebViewActivity.java
+5
-1
No files found.
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/common/activity/ABVContentViewActivity.java
View file @
fe870d7b
...
...
@@ -664,24 +664,7 @@ public abstract class ABVContentViewActivity extends ABVAuthenticatedActivity {
@Override
public
void
onClick
(
View
v
)
{
if
(
mXWalkOpenType
==
Constant
.
XWalkOpenType
.
PANO_EDIT
)
{
ABookAlertDialog
alertDialog
=
AlertDialogUtil
.
createAlertDialog
(
ABVContentViewActivity
.
this
,
PatternStringUtil
.
patternToInt
(
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
();
showConfirmSavePanoEdit
();
}
else
{
// 作業終了する時、作業ID設定して作業一覧で使用するメソットを行う。
putUserPref
(
AppDefType
.
UserPrefKey
.
SYNC_TARGET_OPERATION_ID
,
mOperationId
);
...
...
@@ -754,6 +737,30 @@ public abstract class ABVContentViewActivity extends ABVAuthenticatedActivity {
});
}
/**
* 編集を終了しますかのダイアログメッセージ表示
*/
public
void
showConfirmSavePanoEdit
()
{
ABookAlertDialog
alertDialog
=
AlertDialogUtil
.
createAlertDialog
(
ABVContentViewActivity
.
this
,
PatternStringUtil
.
patternToInt
(
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
();
}
//以下のメッソドは子ActivityにOverideで使用
protected
void
finishActivity
()
{}
protected
void
webViewLoadUrl
(
String
url
){}
...
...
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/viewer/activity/ParentWebViewActivity.java
View file @
fe870d7b
...
...
@@ -246,7 +246,10 @@ public class ParentWebViewActivity extends ABVContentViewActivity {
@Override
public
boolean
onKeyUp
(
int
keyCode
,
KeyEvent
event
)
{
if
(
keyCode
==
KeyEvent
.
KEYCODE_BACK
)
{
if
(
mXWalkOpenType
!=
Constant
.
XWalkOpenType
.
PANO_EDIT
&&
mOperationId
!=
null
&&
mOperationId
>
-
1
)
{
if
(
mXWalkOpenType
==
Constant
.
XWalkOpenType
.
PANO_EDIT
)
{
showConfirmSavePanoEdit
();
}
else
{
if
(
mOperationId
!=
null
&&
mOperationId
>
-
1
)
{
putUserPref
(
AppDefType
.
UserPrefKey
.
SYNC_TARGET_OPERATION_ID
,
mOperationId
);
}
if
(
isLinkedContent
)
{
...
...
@@ -254,6 +257,7 @@ public class ParentWebViewActivity extends ABVContentViewActivity {
}
else
{
finishActivity
();
}
}
}
else
{
return
super
.
onKeyUp
(
keyCode
,
event
);
}
...
...
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