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
c2cfed5a
Commit
c2cfed5a
authored
Jun 14, 2022
by
onuma
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
不要なコメントの削除
parent
bb6c99f5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/common/activity/ABVContentViewActivity.java
+8
-3
No files found.
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/common/activity/ABVContentViewActivity.java
View file @
c2cfed5a
...
...
@@ -1204,9 +1204,11 @@ public abstract class ABVContentViewActivity extends ABVAuthenticatedActivity {
}
}
else
if
(
mCmd
.
equals
(
ABookKeys
.
CMD_LOAD_USER_DATA
))
{
// 前回の入力内容を読み込む
Logger
.
i
(
TAG
,
"load taskKey = "
+
abookCheckParam
.
get
(
ABookKeys
.
TASK_KEY
));
loadUserDataKey
(
abookCheckParam
.
get
(
ABookKeys
.
TASK_KEY
));
}
else
if
(
mCmd
.
equals
(
ABookKeys
.
CMD_SAVE_USER_DATA
))
{
// 入力内容を保存する
Logger
.
i
(
TAG
,
"save taskKey = "
+
abookCheckParam
.
get
(
ABookKeys
.
TASK_KEY
));
saveUserDataKey
(
abookCheckParam
.
get
(
ABookKeys
.
TASK_KEY
));
}
}
...
...
@@ -1244,7 +1246,7 @@ public abstract class ABVContentViewActivity extends ABVAuthenticatedActivity {
// 一番下のフォルダ名 = ユーザーID
String
userId
=
FileUtil
.
getLastChildDirectoryName
(
dir
);
//
Logger.d(TAG,"userId = %s", userId);
Logger
.
d
(
TAG
,
"userId = %s"
,
userId
);
if
(!
ABVDataCache
.
getInstance
().
getMemberInfo
().
loginId
.
equals
(
userId
))
{
// ログインしているユーザー以外のものは削除
...
...
@@ -1260,7 +1262,7 @@ public abstract class ABVContentViewActivity extends ABVAuthenticatedActivity {
bw
.
write
(
userDataKey
);
bw
.
close
();
}
catch
(
IOException
e
)
{
System
.
out
.
println
(
"bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb"
);
}
finally
{
try
{
bw
.
close
();
...
...
@@ -1272,7 +1274,7 @@ public abstract class ABVContentViewActivity extends ABVAuthenticatedActivity {
break
;
}
}
catch
(
IndexOutOfBoundsException
iobex
)
{
System
.
out
.
println
(
"aaaaaaaaaaaaaaaaa"
);
}
}
}
...
...
@@ -1283,11 +1285,13 @@ public abstract class ABVContentViewActivity extends ABVAuthenticatedActivity {
private
void
loadUserDataKey
(
String
userDataKey
)
{
if
(
StringUtil
.
isNullOrEmpty
(
userDataKey
))
{
Logger
.
d
(
TAG
,
"key is not found."
);
// 読み込むためのキーがない
afterABookCheckApi
(
ABookKeys
.
CMD_LOAD_USER_DATA
,
userDataKey
,
1
,
""
,
""
);
return
;
}
String
keyFilePath
=
getUserDataDirRoot
()
+
"/"
+
ABVDataCache
.
getInstance
().
getMemberInfo
().
loginId
+
"/"
+
ABVEnvironment
.
getInstance
().
userDataKeyFile
;
Logger
.
d
(
TAG
,
"keyFilePath = "
+
keyFilePath
);
FileInputStream
fi
=
null
;
InputStreamReader
isr
=
null
;
...
...
@@ -1303,6 +1307,7 @@ public abstract class ABVContentViewActivity extends ABVAuthenticatedActivity {
sb
.
append
((
char
)
data
);
}
isr
.
close
();
Logger
.
d
(
TAG
,
"result = "
+
sb
.
toString
());
afterABookCheckApi
(
ABookKeys
.
CMD_LOAD_USER_DATA
,
userDataKey
,
0
,
""
,
sb
.
toString
());
}
catch
(
FileNotFoundException
fnfex
)
{
...
...
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