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
980023b5
Commit
980023b5
authored
6 years ago
by
Lee Jaebin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
関連資料リンク・資料間リンク時、資料の更新メッセージ表示処理(共通化)
parent
6a06d49a
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
60 additions
and
10 deletions
+60
-10
ABVJE_Res_Default_Android/res/values-ja/strings.xml
+0
-0
ABVJE_Res_Default_Android/res/values-ko/strings.xml
+0
-0
ABVJE_Res_Default_Android/res/values/strings.xml
+1
-0
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/helper/ActivityHandlingHelper.java
+57
-3
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/helper/OperationListHelper.java
+2
-6
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/viewer/activity/HTMLWebViewActivity.java
+0
-1
No files found.
ABVJE_Res_Default_Android/res/values-ja/strings.xml
View file @
980023b5
This diff is collapsed.
Click to expand it.
ABVJE_Res_Default_Android/res/values-ko/strings.xml
View file @
980023b5
This diff is collapsed.
Click to expand it.
ABVJE_Res_Default_Android/res/values/strings.xml
View file @
980023b5
...
...
@@ -495,6 +495,7 @@
<string
name=
"Report"
>
Report
</string>
<string
name=
"Routine"
>
Routine
</string>
<string
name=
"ReportReply"
>
ReportReply
</string>
<string
name=
"content_link_update"
>
The document name [%1$s] will be updated. \nDo you want to update it?
</string>
<!-- 1.0.1 Resource Pattern 1 -->
<!-- 1.9.0.0-->
...
...
This diff is collapsed.
Click to expand it.
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/helper/ActivityHandlingHelper.java
View file @
980023b5
...
...
@@ -111,6 +111,7 @@ public class ActivityHandlingHelper extends ABookHelper implements RemoteObserve
private
volatile
ABVContentViewActivity
objectViewActivity
;
private
MeetingManager
meetingManager
;
private
ABookAlertDialog
downloadConfirmDialog
;
private
ABookAlertDialog
updateConfirmDialog
;
private
boolean
requireHomeReload
;
private
ABookAlertDialog
promotionRequestAlertDialog
;
private
long
lastDisconnect
;
...
...
@@ -1032,8 +1033,6 @@ public class ActivityHandlingHelper extends ABookHelper implements RemoteObserve
public
void
run
()
{
if
(
meetingManager
.
isConnected
())
{
// 会議室参加の場合
meetingManager
.
setPaused
(
false
);
}
else
{
// カスタムURIの場合
startContentActivity
(
data
.
contentId
,
0
);
}
contentDownloader
.
removeContentDownloadListener
(
ActivityHandlingHelper
.
this
);
}
...
...
@@ -1075,7 +1074,7 @@ public class ActivityHandlingHelper extends ABookHelper implements RemoteObserve
return
false
;
}
if
(
contentDto
.
downloadedFlg
)
{
// DL
の場合はOK
if
(
contentDto
.
downloadedFlg
&&
!
contentDto
.
updatedFlg
)
{
// DL && Update済み
の場合はOK
return
true
;
}
...
...
@@ -1113,6 +1112,16 @@ public class ActivityHandlingHelper extends ABookHelper implements RemoteObserve
}
}
}
else
{
if
(
contentDto
.
downloadedFlg
&&
contentDto
.
updatedFlg
)
{
// 更新処理
handler
.
post
(
new
Runnable
()
{
@Override
public
void
run
()
{
showUpdateConfirm
(
contentId
,
contentDto
.
contentName
);
}
});
}
else
{
// ダウンロード処理
handler
.
post
(
new
Runnable
()
{
@Override
public
void
run
()
{
...
...
@@ -1121,6 +1130,7 @@ public class ActivityHandlingHelper extends ABookHelper implements RemoteObserve
});
}
}
}
/**
* 昇格依頼結果受信
...
...
@@ -1229,6 +1239,39 @@ public class ActivityHandlingHelper extends ABookHelper implements RemoteObserve
}
});
}
/**
* 資料の更新ダイアログ生成処理
* @param contentId
*/
private
void
createUpdateConfirm
(
final
long
contentId
,
final
String
contentName
)
{
if
(
updateConfirmDialog
!=
null
&&
updateConfirmDialog
.
isShowing
())
{
// すでにダイアログがある場合は閉じる
updateConfirmDialog
.
dismiss
();
}
updateConfirmDialog
=
AlertDialogUtil
.
createAlertDialog
(
getCurrentActivity
(),
R
.
string
.
confirm
);
updateConfirmDialog
.
setCancelable
(
false
);
updateConfirmDialog
.
setMessage
(
String
.
format
(
mContext
.
getString
(
R
.
string
.
content_link_update
),
contentName
));
updateConfirmDialog
.
setPositiveButton
(
R
.
string
.
yes
,
new
DialogInterface
.
OnClickListener
()
{
@Override
public
void
onClick
(
DialogInterface
dialog
,
int
whichButton
)
{
updateConfirmDialog
.
dismiss
();
downloadContent
(
contentId
);
updateConfirmDialog
=
null
;
}
});
updateConfirmDialog
.
setNegativeButton
(
R
.
string
.
no
,
new
DialogInterface
.
OnClickListener
()
{
@Override
public
void
onClick
(
DialogInterface
dialog
,
int
whichButton
)
{
updateConfirmDialog
.
dismiss
();
startContentActivity
(
contentId
,
0
);
updateConfirmDialog
=
null
;
}
});
}
/**
* DL確認ダイアローグ表示
*
...
...
@@ -1240,6 +1283,17 @@ public class ActivityHandlingHelper extends ABookHelper implements RemoteObserve
downloadConfirmDialog
.
show
();
}
// 資料更新画面表示
private
void
showUpdateConfirm
(
final
long
contentId
,
final
String
contentName
)
{
if
(!
ABVEnvironment
.
getInstance
().
networkAdapter
.
isNetworkConnected
())
{
// インターネットが繋がってない場合は、更新前の関連資料を開く
startContentActivity
(
contentId
,
0
);
}
else
{
createUpdateConfirm
(
contentId
,
contentName
);
updateConfirmDialog
.
show
();
}
}
public
void
finishContentObjectActivity
()
{
if
(
objectViewActivity
!=
null
)
{
objectViewActivity
.
finish
();
...
...
This diff is collapsed.
Click to expand it.
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/helper/OperationListHelper.java
View file @
980023b5
package
jp
.
agentec
.
abook
.
abv
.
ui
.
home
.
helper
;
import
android.view.MotionEvent
;
import
android.view.View
;
import
android.view.ViewGroup
;
import
android.widget.AdapterView
;
...
...
@@ -19,7 +18,6 @@ import jp.agentec.abook.abv.bl.common.log.Logger;
import
jp.agentec.abook.abv.bl.dto.OperationDto
;
import
jp.agentec.abook.abv.bl.logic.AbstractLogic
;
import
jp.agentec.abook.abv.bl.logic.OperationLogic
;
import
jp.agentec.abook.abv.cl.util.PreferenceUtil
;
import
jp.agentec.abook.abv.launcher.android.ABVApplication
;
import
jp.agentec.abook.abv.launcher.android.R
;
import
jp.agentec.abook.abv.ui.common.appinfo.AppDefType
;
...
...
@@ -144,7 +142,7 @@ public class OperationListHelper {
OperationDto
operationDto
=
(
OperationDto
)
parent
.
getAdapter
().
getItem
(
position
);
if
(
operationDto
.
contentId
!=
null
&&
operationDto
.
contentId
!=
0
)
{
// 作業画面
mAppActivity
.
open
DirectionsOr
ReportView
(
operationDto
);
mAppActivity
.
openReportView
(
operationDto
);
}
else
{
if
(
operationDto
.
operationType
==
PANO
)
{
// パノラマ登録画面
...
...
@@ -215,10 +213,8 @@ public class OperationListHelper {
public
void
onItemClick
(
AdapterView
<?>
parent
,
View
view
,
int
position
,
long
operationId
)
{
OperationDto
operationDto
=
(
OperationDto
)
parent
.
getAdapter
().
getItem
(
position
);
if
(
operationDto
.
contentId
!=
null
&&
operationDto
.
contentId
!=
0
)
{
//TODO テスト用のため、削除
ABVToastUtil
.
showMakeText
(
mAppActivity
,
"open operationId : "
+
operationId
,
Toast
.
LENGTH_LONG
);
// 作業画面
mAppActivity
.
open
DirectionsOr
ReportView
(
operationDto
);
mAppActivity
.
openReportView
(
operationDto
);
}
else
{
if
(
operationDto
.
operationType
==
PANO
)
{
// パノラマ登録画面
...
...
This diff is collapsed.
Click to expand it.
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/viewer/activity/HTMLWebViewActivity.java
View file @
980023b5
...
...
@@ -638,7 +638,6 @@ public class HTMLWebViewActivity extends ParentWebViewActivity {
runOnUiThread
(
new
Runnable
()
{
@Override
public
void
run
()
{
Logger
.
d
(
TAG
,
"onDownloadingContentZip ...........................................>"
);
if
(
notification
.
getDownloadStatus
()
==
DownloadStatusType
.
Downloading
)
{
Logger
.
d
(
TAG
,
"onDownloadingContentZip .....................Downloading......................>"
);
ABVToastUtil
.
showMakeText
(
getApplicationContext
(),
R
.
string
.
reader_downloading
,
Toast
.
LENGTH_SHORT
);
...
...
This diff is collapsed.
Click to expand it.
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