/** * catalogListCsvArray変数の作成 * * @param csvArray */ protected void downloadSettingSuccess(CsvArray csvArray) { // MainApplicationに保存 if (settingActionMode() == ActionMode.CoverFlow) { MainApplication.getInstance().setCoverflowCsvArray(csvArray); } else { MainApplication.getInstance().setCataloglistCsvArray(csvArray); } // 無効データ削除 catalogListCsvArray = CatalogListSetting.removeInvalid(csvArray); catalogListCsvArray = settingCsvArray(catalogListCsvArray); }
/** * 背景画像の名前 * * @param id * @param orientation * @return */ public BGImageSetting settingBgImage(String id, int orientation) { AppSetting appSetting = MainApplication.getInstance().getAppSetting(); BGImageSetting setting = null; switch (orientation) { case Configuration.ORIENTATION_PORTRAIT: setting = appSetting.getCataloglistBGImageDpi(id); break; case Configuration.ORIENTATION_LANDSCAPE: setting = appSetting.getCataloglistBGImageLandscapeDpi(id); break; } return setting; }
public void createCacheToSetting() { DiskCache disk = MainApplication.getInstance().getDickCache(); InputStream is = disk.get(catalogUrl, settingName()); if (is != null) { CsvArray csvArray = CsvReader.read(is); try { is.close(); } catch (IOException e) { e.printStackTrace(); } // catalogListCsvArrayの作成 downloadSettingSuccess(csvArray); downloadCsvCompleted = true; } }
/** * タイトルロゴの名前 * * @param catalogId * @return */ public String settingNavigationLogoImage(String catalogId) { AppSetting appSetting = MainApplication.getInstance().getAppSetting(); return appSetting.getCataloglistTitleIcon(catalogId); }