Removed legacy import folder

Was previously used for OPML import
This commit is contained in:
ByteHamster 2020-08-15 20:46:55 +02:00
parent 3bc94df932
commit bf55fde9ac
1 changed files with 0 additions and 22 deletions

View File

@ -50,8 +50,6 @@ import de.danoeh.antennapod.core.util.download.AutoUpdateManager;
public class UserPreferences {
private UserPreferences(){}
private static final String IMPORT_DIR = "import/";
private static final String TAG = "UserPreferences";
// User Interface
@ -168,7 +166,6 @@ public class UserPreferences {
UserPreferences.context = context.getApplicationContext();
UserPreferences.prefs = PreferenceManager.getDefaultSharedPreferences(context);
createImportDirectory();
createNoMediaFile();
}
@ -923,7 +920,6 @@ public class UserPreferences {
prefs.edit()
.putString(PREF_DATA_FOLDER, dir)
.apply();
createImportDirectory();
}
/**
@ -942,24 +938,6 @@ public class UserPreferences {
}
}
/**
* Creates the import directory if it doesn't exist and if storage is
* available
*/
private static void createImportDirectory() {
File importDir = getDataFolder(IMPORT_DIR);
if (importDir != null) {
if (importDir.exists()) {
Log.d(TAG, "Import directory already exists");
} else {
Log.d(TAG, "Creating import directory");
importDir.mkdir();
}
} else {
Log.d(TAG, "Could not access external storage.");
}
}
/**
*
* @return true if auto update is set to a specific time