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
8d189837
Commit
8d189837
authored
Mar 26, 2019
by
Jeong Gilmo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#33006 事業者毎のリソース多重化(Android)
- コメントの修正
parent
833fcf32
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
3 additions
and
21 deletions
+3
-21
ABVJE_BL/src/jp/agentec/abook/abv/bl/acms/client/json/ContentVersionsJSON.java
+3
-6
ABVJE_BL/src/jp/agentec/abook/abv/bl/common/ABVEnvironment.java
+0
-2
ABVJE_BL/src/jp/agentec/abook/abv/bl/download/ContentRefresher.java
+0
-2
ABVJE_UI_Android/src/jp/agentec/abook/abv/cl/util/AndroidStringUtil.java
+0
-2
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/common/appinfo/AppDefType.java
+0
-2
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/activity/OperationListActivity.java
+0
-7
No files found.
ABVJE_BL/src/jp/agentec/abook/abv/bl/acms/client/json/ContentVersionsJSON.java
View file @
8d189837
...
...
@@ -28,22 +28,19 @@ public class ContentVersionsJSON extends AcmsCommonJSON {
public
ArrayList
<
ContentDto
>
contentVersions
;
public
String
fetchDate
;
// #33006 start
public
static
final
String
ResourcePatternType
=
"resourcePatternType"
;
// 文言リソースパターン
public
int
resourcePatternType
;
// #33006 end
public
int
resourcePatternType
;
// 文言リソースパターン変数
public
ContentVersionsJSON
(
String
jsonString
)
throws
AcmsException
{
super
(
jsonString
);
}
@Override
protected
void
parse
(
JSONObject
json
)
throws
JSONValidationException
{
//
#33006 start
//
取得したJSONから事業者リソースパターンを取得する
if
(
json
.
has
(
ResourcePatternType
))
{
resourcePatternType
=
json
.
getInt
(
ResourcePatternType
);
}
// #33006 end
if
(
json
.
has
(
FetchDate
))
{
fetchDate
=
json
.
getString
(
FetchDate
);
}
...
...
ABVJE_BL/src/jp/agentec/abook/abv/bl/common/ABVEnvironment.java
View file @
8d189837
...
...
@@ -59,10 +59,8 @@ public class ABVEnvironment {
// ダウンロード作業が完了したあと、テーブルに値を更新する。その後、再びクリアするようにする
public
String
tempContentVersionLastFetchDate
=
""
;
// #33006 start
// Serverから取得したcontentVersion時のリソースパターンを一時的に保存するための変数
public
int
resourcePatternType
;
// #33006 end
////////////////////////////// 定数 //////////////////////////////////
...
...
ABVJE_BL/src/jp/agentec/abook/abv/bl/download/ContentRefresher.java
View file @
8d189837
...
...
@@ -265,10 +265,8 @@ public class ContentRefresher {
return
false
;
}
// #33006 start
// リソースパターンの値を取得する
ABVEnvironment
.
getInstance
().
resourcePatternType
=
json
.
resourcePatternType
;
// #33006 end
// 一時値を保存。ダウンロード処理が完了したあとにlastFetchDateを更新
String
fetchDate
=
json
.
fetchDate
;
...
...
ABVJE_UI_Android/src/jp/agentec/abook/abv/cl/util/AndroidStringUtil.java
View file @
8d189837
...
...
@@ -16,7 +16,6 @@ public class AndroidStringUtil {
return
String
.
format
(
context
.
getResources
().
getString
(
id
),
(
Object
[])
args
);
}
// #33006 start
// メッセージのパターン化する
public
static
int
pattern
(
Context
context
,
String
key
,
int
pattern
)
{
if
(
pattern
>
0
)
{
...
...
@@ -25,5 +24,4 @@ public class AndroidStringUtil {
return
context
.
getResources
().
getIdentifier
(
key
,
"string"
,
context
.
getPackageName
());
}
}
// #33006 end
}
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/common/appinfo/AppDefType.java
View file @
8d189837
...
...
@@ -55,9 +55,7 @@ public interface AppDefType {
String
VIEW_MODE
=
"viewMode"
;
String
OPERATION_REPORT_TYPES
=
"operationReportTypes"
;
// #33006 start
String
RESOURCE_PATTERN_TYPE
=
"resourcePatternType"
;
// 文言リソースパターン
// #33006 end
}
/**
...
...
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/activity/OperationListActivity.java
View file @
8d189837
...
...
@@ -365,10 +365,8 @@ public class OperationListActivity extends ABVUIActivity {
if
(
refreshBaseView
!=
null
)
{
refreshBaseView
.
onRefreshComplete
();
}
// #33006 start
// リソースパターンを取得し、保存する。
getResourcePattern
();
// #33006 end
refreshOperationList
();
}
}
...
...
@@ -1803,14 +1801,9 @@ public class OperationListActivity extends ABVUIActivity {
return
operationReportTypes
;
}
// #33006 start
// ログイン成功した後、新着更新時の「ContentVersion」APIからリソースパターンを取得し、ローカルに保存する。
private
void
getResourcePattern
()
{
Logger
.
d
(
TAG
,
"ABVEnvironment.getInstance().resourcePatternType : "
+
ABVEnvironment
.
getInstance
().
resourcePatternType
);
if
(
ABVEnvironment
.
getInstance
().
resourcePatternType
!=
0
)
{
}
else
{
}
putUserPref
(
AppDefType
.
UserPrefKey
.
RESOURCE_PATTERN_TYPE
,
ABVEnvironment
.
getInstance
().
resourcePatternType
);
}
// #33006 end
}
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