Merge pull request #4365 from ByteHamster/remove-legacy-code

Removed legacy import folder
This commit is contained in:
H. Lehmann 2020-08-22 13:02:28 +02:00 committed by GitHub
commit d9814d2563
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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