Commit 84d17561 by NGUYEN HOANG SON

fix: clear dashboard setting when change user

parent 00da34b0
......@@ -62,6 +62,7 @@ import jp.agentec.abook.abv.ui.common.constant.ErrorMessage;
import jp.agentec.abook.abv.ui.common.dialog.ABookAlertDialog;
import jp.agentec.abook.abv.ui.common.helper.ABVViewUnbindHelper;
import jp.agentec.abook.abv.ui.common.util.AlertDialogUtil;
import jp.agentec.adf.util.FileUtil;
import jp.agentec.adf.util.StringUtil;
/**
......@@ -733,6 +734,7 @@ public class LoginActivity extends ABVLoginActivity {
// ユーザ変更があった場合、チャットのルーム情報をクリアする
clearChatLastRoom();
abookCommClear();
clearUserSettings();
//ユーザ変更があった場合、FetchDateをクリアする
AcmsDao dao = AbstractDao.getDao(AcmsDao.class);
......@@ -826,4 +828,9 @@ public class LoginActivity extends ABVLoginActivity {
deleteSharedPreferences(ABookCommConstants.TAG);
communicationLogic.clearAllData();
}
private void clearUserSettings() {
String dashboardSettingFilePath = getCacheDir().getAbsoluteFile() + "/" + "dashboardSetting.json";
FileUtil.delete(dashboardSettingFilePath);
}
}
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