Esempio n. 1
0
 public DBSettingsManager(final Context context) {
   super(context, context.getPackageName() + ".settings", null, DB_VERSION);
   adapter = createAdapter(DB_VERSION);
   try {
     m_db = getWritableDatabase();
   } catch (final Exception ex) {
     LCTX.e("Unexpected DB error: ", ex);
   }
   BackupManager.addAgent(this);
 }
Esempio n. 2
0
 private OpdsSettings() {
   BackupManager.addAgent(this);
   SharedPreferences prefs = SettingsManager.prefs;
   /* =============== OPDS settings =============== */
   opdsCatalogs = OPDS_CATALOGS.getPreferenceValue(prefs);
   downloadDir = OPDS_DOWNLOAD_DIR.getPreferenceValue(prefs);
   filterTypes = OPDS_FILTER_TYPES.getPreferenceValue(prefs);
   downloadArchives = OPDS_DOWNLOAD_ARCHIVES.getPreferenceValue(prefs);
   unpackArchives = OPDS_UNPACK_ARCHIVES.getPreferenceValue(prefs);
   deleteArchives = OPDS_DELETE_ARCHIVES.getPreferenceValue(prefs);
 }