Commit c2cfed5a by onuma

不要なコメントの削除

parent bb6c99f5
......@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment